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

David Blaikie dblaikie at gmail.com
Tue Jul 15 09:05:38 PDT 2014


Which warning did this cause? Might be worth filing a bug on Clang to
implement it.

On Tue, Jul 15, 2014 at 3:53 AM, Andrea Di Biagio
<Andrea_DiBiagio at sn.scee.net> wrote:
> 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 {
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list