[llvm] r213061 - Silence a warning in conditional expression.

Andrea Di Biagio Andrea_DiBiagio at sn.scee.net
Tue Jul 15 03:53:45 PDT 2014


Author: adibiagio
Date: Tue Jul 15 05:53:44 2014
New Revision: 213061

URL: http://llvm.org/viewvc/llvm-project?rev=213061&view=rev
Log:
Silence a warning in conditional expression.

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.


Modified:
    llvm/trunk/lib/Target/X86/X86FastISel.cpp

Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=213061&r1=213060&r2=213061&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Tue Jul 15 05:53:44 2014
@@ -2919,7 +2919,7 @@ bool X86FastISel::FastLowerCall(CallLowe
   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 {





More information about the llvm-commits mailing list