From 1232b9d47209fda762a9e5bc189d029451db5381 Mon Sep 17 00:00:00 2001 From: Philipp Tomsich Date: Mon, 13 Feb 2023 17:56:20 +0100 Subject: [PATCH] [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); ^~~~~~~~~~~ --- llvm/lib/Target/RISCV/RISCVISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp index 3c6404e..5a04f11 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. -- 2.7.4