Silence a warning in conditional expression.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 15 Jul 2014 10:53:44 +0000 (10:53 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 15 Jul 2014 10:53:44 +0000 (10:53 +0000)
Fixes a gcc warning caused by a typo. A redundant assignment operation was
accidentally used as the third operand of a conditional expression.
No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213061 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FastISel.cpp

index 6cb640dc01e2d8e103b86d72c37509d00198b762..2d494b4aeeb6860d706b930a1a07fa7523945140 100644 (file)
@@ -2919,7 +2919,7 @@ bool X86FastISel::FastLowerCall(CallLoweringInfo &CLI) {
   MachineInstrBuilder MIB;
   if (CalleeOp) {
     // Register-indirect call.
-    unsigned CallOpc = Is64Bit ? X86::CALL64r : CallOpc = X86::CALL32r;
+    unsigned CallOpc = Is64Bit ? X86::CALL64r : X86::CALL32r;
     MIB = BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, TII.get(CallOpc))
       .addReg(CalleeOp);
   } else {