fix a globalopt crash on 'bullet' (handling evaluation of a store
authorChris Lattner <sabre@nondot.org>
Thu, 7 Jan 2010 01:16:21 +0000 (01:16 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 7 Jan 2010 01:16:21 +0000 (01:16 +0000)
commita0e9a2475cd6e45966a591de8e0740a102fe0dfe
tree9c4033d94d48d1ca9d2c906c03764170045a1a9c
parent17751dac3e0a7b7a8cdf9bd612ce20f157eb251f
fix a globalopt crash on 'bullet' (handling evaluation of a store
to an element of a vector in a static ctor) which occurs with an
unrelated patch I'm testing.  Annoyingly, EvaluateStoreInto basically
does exactly the same stuff as InsertElement constant folding, but it
now handles vectors, and you can't insertelement into a vector.  It
would be 'really nice' if GEP into a vector were not legal.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92889 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/crash.ll [new file with mode: 0644]