Test commit: Remove double variable assignment
authorLewis Revill <lewis.revill@embecosm.com>
Wed, 3 Apr 2019 15:54:30 +0000 (15:54 +0000)
committerLewis Revill <lewis.revill@embecosm.com>
Wed, 3 Apr 2019 15:54:30 +0000 (15:54 +0000)
llvm-svn: 357601

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

index 03baccf..cc04c36 100644 (file)
@@ -1189,7 +1189,7 @@ static bool CC_RISCV(const DataLayout &DL, RISCVABI::ABI ABI, unsigned ValNo,
   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