Skip to content
Snippets Groups Projects
  • Tom Stellard's avatar
    a3a80c71
    Merging r229352: · a3a80c71
    Tom Stellard authored
    ------------------------------------------------------------------------
    r229352 | david.majnemer | 2015-02-15 23:02:09 -0500 (Sun, 15 Feb 2015) | 9 lines
    
    IR: Properly return nullptr when getAggregateElement is out-of-bounds
    
    We didn't properly handle the out-of-bounds case for
    ConstantAggregateZero and UndefValue.  This would manifest as a crash
    when the constant folder was asked to fold a load of a constant global
    whose struct type has no operands.
    
    This fixes PR22595.
    
    ------------------------------------------------------------------------
    
    llvm-svn: 232512
    a3a80c71
    History
    Merging r229352:
    Tom Stellard authored
    ------------------------------------------------------------------------
    r229352 | david.majnemer | 2015-02-15 23:02:09 -0500 (Sun, 15 Feb 2015) | 9 lines
    
    IR: Properly return nullptr when getAggregateElement is out-of-bounds
    
    We didn't properly handle the out-of-bounds case for
    ConstantAggregateZero and UndefValue.  This would manifest as a crash
    when the constant folder was asked to fold a load of a constant global
    whose struct type has no operands.
    
    This fixes PR22595.
    
    ------------------------------------------------------------------------
    
    llvm-svn: 232512
Code owners
Assign users and groups as approvers for specific file changes. Learn more.