OSDN Git Service

fix clang/test/CodeGenObjC/try.m, a basereg doesn't mean no global anymore.
authorChris Lattner <sabre@nondot.org>
Sat, 27 Jun 2009 04:50:14 +0000 (04:50 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 27 Jun 2009 04:50:14 +0000 (04:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74375 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FastISel.cpp

index 7aa5a73..dd54299 100644 (file)
@@ -1145,12 +1145,10 @@ bool X86FastISel::X86SelectCall(Instruction *I) {
     return false;
   unsigned CalleeOp = 0;
   GlobalValue *GV = 0;
-  if (CalleeAM.Base.Reg != 0) {
-    assert(CalleeAM.GV == 0);
-    CalleeOp = CalleeAM.Base.Reg;
-  } else if (CalleeAM.GV != 0) {
-    assert(CalleeAM.GV != 0);
+  if (CalleeAM.GV != 0) {
     GV = CalleeAM.GV;
+  } else if (CalleeAM.Base.Reg != 0) {
+    CalleeOp = CalleeAM.Base.Reg;
   } else
     return false;