[RISCV] Add curly braces around a case body that declares variables. NFC
authorCraig Topper <craig.topper@sifive.com>
Fri, 16 Jul 2021 01:06:59 +0000 (18:06 -0700)
committerCraig Topper <craig.topper@sifive.com>
Fri, 16 Jul 2021 16:35:56 +0000 (09:35 -0700)
This is at the end of the switch so doesn't cause any issues now,
but if a new case is added it will break.

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

index e6527a9..7273a3a 100644 (file)
@@ -889,7 +889,7 @@ bool RISCVTargetLowering::getTgtMemIntrinsic(IntrinsicInfo &Info,
   case Intrinsic::riscv_masked_atomicrmw_min_i32:
   case Intrinsic::riscv_masked_atomicrmw_umax_i32:
   case Intrinsic::riscv_masked_atomicrmw_umin_i32:
-  case Intrinsic::riscv_masked_cmpxchg_i32:
+  case Intrinsic::riscv_masked_cmpxchg_i32: {
     PointerType *PtrTy = cast<PointerType>(I.getArgOperand(0)->getType());
     Info.opc = ISD::INTRINSIC_W_CHAIN;
     Info.memVT = MVT::getVT(PtrTy->getElementType());
@@ -900,6 +900,7 @@ bool RISCVTargetLowering::getTgtMemIntrinsic(IntrinsicInfo &Info,
                  MachineMemOperand::MOVolatile;
     return true;
   }
+  }
 }
 
 bool RISCVTargetLowering::isLegalAddressingMode(const DataLayout &DL,