[llvm] r357601 - Test commit: Remove double variable assignment

Lewis Revill via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 3 08:54:30 PDT 2019


Author: lewis-revill
Date: Wed Apr  3 08:54:30 2019
New Revision: 357601

URL: http://llvm.org/viewvc/llvm-project?rev=357601&view=rev
Log:
Test commit: Remove double variable assignment

Modified:
    llvm/trunk/lib/Target/RISCV/RISCVISelLowering.cpp

Modified: llvm/trunk/lib/Target/RISCV/RISCVISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/RISCV/RISCVISelLowering.cpp?rev=357601&r1=357600&r2=357601&view=diff
==============================================================================
--- llvm/trunk/lib/Target/RISCV/RISCVISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/RISCV/RISCVISelLowering.cpp Wed Apr  3 08:54:30 2019
@@ -1189,7 +1189,7 @@ static bool CC_RISCV(const DataLayout &D
   else if (ValVT == MVT::f64 && !UseGPRForF64)
     Reg = State.AllocateReg(ArgFPR64s, ArgFPR32s);
   else
-    Reg = Reg = State.AllocateReg(ArgGPRs);
+    Reg = State.AllocateReg(ArgGPRs);
   unsigned StackOffset = Reg ? 0 : State.AllocateStack(XLen / 8, XLen / 8);
 
   // If we reach this point and PendingLocs is non-empty, we must be at the




More information about the llvm-commits mailing list