From: Philipp Tomsich Date: Mon, 13 Feb 2023 16:56:20 +0000 (+0100) Subject: [RISCV] Fix -Wbraced-scalar-init warning. NFC X-Git-Tag: upstream/17.0.6~17700 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1232b9d47209fda762a9e5bc189d029451db5381;p=platform%2Fupstream%2Fllvm.git [RISCV] Fix -Wbraced-scalar-init warning. NFC 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); ^~~~~~~~~~~ --- diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp index 3c6404e14666..5a04f11c36ef 100644 --- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp +++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp @@ -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.