]> granicus.if.org Git - llvm/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357601 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/RISCV/RISCVISelLowering.cpp

index 03baccfabecd87a4756ebc24febabad96734e62f..cc04c36393bd8cc9071be64404faedcebfa8d7aa 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