projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dac7fca
)
Fix typo in r366494. Spotted by Yuanfang Chen.
author
Peter Collingbourne
<peter@pcc.me.uk>
Thu, 18 Jul 2019 21:03:37 +0000
(21:03 +0000)
committer
Peter Collingbourne
<peter@pcc.me.uk>
Thu, 18 Jul 2019 21:03:37 +0000
(21:03 +0000)
llvm-svn: 366497
llvm/lib/IR/Constants.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Constants.cpp
b/llvm/lib/IR/Constants.cpp
index
796703e
..
cc1eaed
100644
(file)
--- a/
llvm/lib/IR/Constants.cpp
+++ b/
llvm/lib/IR/Constants.cpp
@@
-515,7
+515,7
@@
bool Constant::needsRelocation() const {
// between two of them don't when they are for labels in the same
// function. This is a common idiom when creating a table for the
// indirect goto extension, so we handle it efficiently here.
- if (isa<BlockAddress>(LHSOp0) && isa<BlockAddress>(
L
HSOp0) &&
+ if (isa<BlockAddress>(LHSOp0) && isa<BlockAddress>(
R
HSOp0) &&
cast<BlockAddress>(LHSOp0)->getFunction() ==
cast<BlockAddress>(RHSOp0)->getFunction())
return false;