Fix one bug in the latest incarnation of r209843 -- combining GEPs
authorChandler Carruth <chandlerc@gmail.com>
Thu, 29 May 2014 23:05:52 +0000 (23:05 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 29 May 2014 23:05:52 +0000 (23:05 +0000)
commit3012a1b4cd6a7d4cc295f9c70ebc643ece5deac0
tree44dadec0e5e0efb2db9351a8b886d7ab4f0cb200
parent11b49c3818c3b827c027023d7765b0349325575e
Fix one bug in the latest incarnation of r209843 -- combining GEPs
across PHI nodes. The code was computing the Idxs from the 'GEP'
variable's indices when what it wanted was Op1's indices. This caused an
ASan heap-overflow for me that pin pointed the issue when Op1 had more
indices than GEP did. =] I'll let Louis add a specific test case for
this if he wants.

llvm-svn: 209857
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp