[RISCV] Fix -Wbraced-scalar-init warning. NFC
authorPhilipp Tomsich <philipp.tomsich@vrull.eu>
Mon, 13 Feb 2023 16:56:20 +0000 (17:56 +0100)
committerPhilipp Tomsich <philipp.tomsich@vrull.eu>
Mon, 13 Feb 2023 16:56:31 +0000 (17:56 +0100)
Fix the following warning:
/lib/Target/RISCV/RISCVISelLowering.cpp:315:24: error: braces around scalar initializer [-Werror,-Wbraced-scalar-init]
    setOperationAction({ISD::CTLZ}, XLenVT, Legal);
                       ^~~~~~~~~~~

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

index 3c6404e146661762f25ae813d1219a9d83fd6e7c..5a04f11c36efc87b59ea7391a6c6823498324fb5 100644 (file)
@@ -312,7 +312,7 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
   }
 
   if (Subtarget.hasVendorXTHeadBb()) {
-    setOperationAction({ISD::CTLZ}, XLenVT, Legal);
+    setOperationAction(ISD::CTLZ, XLenVT, Legal);
 
     // We need the custom lowering to make sure that the resulting sequence
     // for the 32bit case is efficient on 64bit targets.