[llvm] r229352 - IR: Properly return nullptr when getAggregateElement is out-of-bounds
Björn Steinbrink
bsteinbr at gmail.com
Sat Mar 14 06:52:25 PDT 2015
Hi Tom, Hi David,
On 2015.02.16 04:02:10 -0000, David Majnemer wrote:
> Author: majnemer
> Date: Sun Feb 15 22:02:09 2015
> New Revision: 229352
>
> URL: http://llvm.org/viewvc/llvm-project?rev=229352&view=rev
> Log:
> 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.
Could this be added to 3.5.2?
Cheers
Björn
More information about the llvm-commits
mailing list