Fix a bug where we would corrupt the offset when evaluating
authorChandler Carruth <chandlerc@gmail.com>
Sun, 25 Aug 2013 10:46:39 +0000 (10:46 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 25 Aug 2013 10:46:39 +0000 (10:46 +0000)
commitc99a0d8586cd1b3f6d3b13bb839205e22375235d
tree6aa1180b1b6da333978c6d4024b4e44c37f5694a
parentb31eebd3fd8384d4355dab1efbba6be339de70cd
Fix a bug where we would corrupt the offset when evaluating
a non-constant GEP.

I don't have any test case that demonstrates this, Nadav (indirectly)
pointed this out in code review. I'm not sure how possible it is to
contrive a test case for the current users of this code that triggers
the bad issue sadly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189188 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Value.cpp