diff options
author | Kaelyn Takata <rikka@google.com> | 2014-04-14 16:50:22 +0000 |
---|---|---|
committer | Kaelyn Takata <rikka@google.com> | 2014-04-14 16:50:22 +0000 |
commit | f9d483128cae3b4b11923d3477752dc92e9decb2 (patch) | |
tree | e8f15c00dfc5005fa5dc541363f63535e577e5a9 /llvm/lib/Analysis/BranchProbabilityInfo.cpp | |
parent | 95d570335ce3ce35519073732dc185eeb701823f (diff) | |
download | bcm5719-llvm-f9d483128cae3b4b11923d3477752dc92e9decb2.tar.gz bcm5719-llvm-f9d483128cae3b4b11923d3477752dc92e9decb2.zip |
Fix up MCFixup::getAccessVariant to handle unary expressions.
This allows correct relocations to be generated for a symbolic
address that is being adjusted by a negative constant. Since r204294,
such expressions have triggered undefined behavior when LLVM was built
without assertions.
Credit goes to Rafael for this patch; I'm submitting it on his behalf
as he is on vacation this week.
llvm-svn: 206192
Diffstat (limited to 'llvm/lib/Analysis/BranchProbabilityInfo.cpp')
0 files changed, 0 insertions, 0 deletions