[llvm] r366497 - Fix typo in r366494. Spotted by Yuanfang Chen.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 14:03:37 PDT 2019
Author: pcc
Date: Thu Jul 18 14:03:37 2019
New Revision: 366497
URL: http://llvm.org/viewvc/llvm-project?rev=366497&view=rev
Log:
Fix typo in r366494. Spotted by Yuanfang Chen.
Modified:
llvm/trunk/lib/IR/Constants.cpp
Modified: llvm/trunk/lib/IR/Constants.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Constants.cpp?rev=366497&r1=366496&r2=366497&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Constants.cpp (original)
+++ llvm/trunk/lib/IR/Constants.cpp Thu Jul 18 14:03:37 2019
@@ -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;
More information about the llvm-commits
mailing list