commit | 6de0a12927845ca49cd5cb1da9206fe503b565ec | [log] [tgz] |
---|---|---|
author | David Majnemer <david.majnemer@gmail.com> | Mon Feb 16 04:02:09 2015 +0000 |
committer | David Majnemer <david.majnemer@gmail.com> | Mon Feb 16 04:02:09 2015 +0000 |
tree | 5d82d88fa7ddc91847a665e5f33804e846170431 | |
parent | 36fcfaf54eeee8b8fd63eea33c443d3b22a015ed [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229352 91177308-0d34-0410-b5e6-96231b3b80d8