From: Evan Cheng Date: Thu, 16 Mar 2006 22:02:48 +0000 (+0000) Subject: Bug fix: condition inverted. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2221de9cc18c0192619032454febe8e28b64f6ff;p=oota-llvm.git Bug fix: condition inverted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26804 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 148c7f8af9f..5873716d470 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -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