aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Constants.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2019-07-18 21:03:37 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2019-07-18 21:03:37 +0000
commit68f3fc2d91660f474cdb74d2f4e5f18a708d8e00 (patch)
tree7c3c2b8e8b684e01fd57ef8e5c9ac6004de4c895 /llvm/lib/IR/Constants.cpp
parentdac7fca530f7fed83db6a48c77b98fa82620e3a8 (diff)
downloadllvm-68f3fc2d91660f474cdb74d2f4e5f18a708d8e00.zip
llvm-68f3fc2d91660f474cdb74d2f4e5f18a708d8e00.tar.gz
llvm-68f3fc2d91660f474cdb74d2f4e5f18a708d8e00.tar.bz2
Fix typo in r366494. Spotted by Yuanfang Chen.
llvm-svn: 366497
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r--llvm/lib/IR/Constants.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp
index 796703e..cc1eaed 100644
--- 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>(LHSOp0) &&
+ if (isa<BlockAddress>(LHSOp0) && isa<BlockAddress>(RHSOp0) &&
cast<BlockAddress>(LHSOp0)->getFunction() ==
cast<BlockAddress>(RHSOp0)->getFunction())
return false;