Make sure that ConstantExpr offsets also aren't off of extern
authorEric Christopher <echristo@apple.com>
Thu, 11 Feb 2010 17:44:04 +0000 (17:44 +0000)
committerEric Christopher <echristo@apple.com>
Thu, 11 Feb 2010 17:44:04 +0000 (17:44 +0000)
commitdfdddd8ed621a44ec3da0e2fff42abf9e60e812a
tree9a5d3227f547edf61ce79d034116d7c5b196a4f3
parentba6e033f4f2b22dce4766a55dead8385a955fd46
Make sure that ConstantExpr offsets also aren't off of extern
symbols.

Thanks to Duncan Sands for the testcase!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95877 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/objsize.ll