Skip to content

Commit

Permalink
[RISCV] Fix -Wbraced-scalar-init warning. NFC
Browse files Browse the repository at this point in the history
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);
                       ^~~~~~~~~~~
  • Loading branch information
ptomsich committed Feb 13, 2023
1 parent 171ffd4 commit 1232b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit 1232b9d

Please sign in to comment.