Bug fix: condition inverted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26804 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2006-03-16 22:02:48 +00:00
parent d1d6b5cce2
commit 2221de9cc1

View File

@ -2214,7 +2214,7 @@ bool X86TargetLowering::isLegalAddressImmediate(GlobalValue *GV) const {
if (RModel == Reloc::Static)
return true;
else if (RModel == Reloc::DynamicNoPIC)
return DarwinGVRequiresExtraLoad(GV);
return !DarwinGVRequiresExtraLoad(GV);
else
return false;
} else