diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2019-07-18 21:03:37 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2019-07-18 21:03:37 +0000 |
commit | 68f3fc2d91660f474cdb74d2f4e5f18a708d8e00 (patch) | |
tree | 7c3c2b8e8b684e01fd57ef8e5c9ac6004de4c895 /llvm/lib/IR/Constants.cpp | |
parent | dac7fca530f7fed83db6a48c77b98fa82620e3a8 (diff) | |
download | llvm-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.cpp | 2 |
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; |