aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-08-07 10:59:59 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-08-07 10:59:59 +0000
commit2f6cf4884c66671956f680c81b57781fdd18cf32 (patch)
tree1cab7db6bcea19fd73b113faf948f6776c4b2cfc /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent881d0a796668a98acf5140ecf7e7b8743a11ba3a (diff)
downloadllvm-2f6cf4884c66671956f680c81b57781fdd18cf32.zip
llvm-2f6cf4884c66671956f680c81b57781fdd18cf32.tar.gz
llvm-2f6cf4884c66671956f680c81b57781fdd18cf32.tar.bz2
Fix PR13412, a nasty miscompile due to the interleaved
instsimplify+inline strategy. The crux of the problem is that instsimplify was reasonably relying on an invariant that is true within any single function, but is no longer true mid-inline the way we use it. This invariant is that an argument pointer != a local (alloca) pointer. The fix is really light weight though, and allows instsimplify to be resiliant to these situations: when checking the relation ships to function arguments, ensure that the argumets come from the same function. If they come from different functions, then none of these assumptions hold. All credit to Benjamin Kramer for coming up with this clever solution to the problem. llvm-svn: 161410
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions