When constant folding GEP of GEP, do not crash if an index of
authorDuncan Sands <baldrick@free.fr>
Fri, 12 Mar 2010 17:55:20 +0000 (17:55 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 12 Mar 2010 17:55:20 +0000 (17:55 +0000)
commit890edda7c22dd8525f9fe44085cfd7080e67dfee
tree295322c484f3f1d9ae827475f5f30b8f36b39994
parent5c213dc78cc717c30908212049e35cfdb950fa24
When constant folding GEP of GEP, do not crash if an index of
the inner GEP is not a ConstantInt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98359 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
test/Transforms/InstCombine/gepgep.ll [new file with mode: 0644]