Fix typo in r366494. Spotted by Yuanfang Chen.

llvm-svn: 366497
This commit is contained in:
Peter Collingbourne 2019-07-18 21:03:37 +00:00
parent dac7fca530
commit 68f3fc2d91
1 changed files with 1 additions and 1 deletions

View File

@ -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;