a63c9b2 Do not pass null attributes to BuildAttributedStmt during instantiation

Authored and Committed by Aaron Ballman 2 years ago
    Do not pass null attributes to BuildAttributedStmt during instantiation
    
    When transforming an attribute during template instantiation, if the
    transformation fails, it may result in a null attribute being returned.
    This null attribute should not be passed in as one of the attributes
    used to create an attributed statement.
    
    If all of the attributes fail to transform, we do not create an
    attributed statement at all.
    
    There are no attributes that return null currently, so there is no easy
    way to test this currently. However, this fixes a crash caused by
    8344675908424ee532d4ae30e5043c5a5834e02c.