There are only two cases here. Using an assert ensures there is
no handled third case.
Also move comment to avoid odd formatting.
Paths
| Differential D146998
[RISCV] Replace an 'else if' with 'else'+assert. NFC ClosedPublic Authored by craig.topper on Mar 27 2023, 1:10 PM.
Details Summary There are only two cases here. Using an assert ensures there is Also move comment to avoid odd formatting.
Diff Detail
Event Timelinecraig.topper retitled this revision from [RISCV] Replace an 'else if' with 'else'+assert. to [RISCV] Replace an 'else if' with 'else'+assert. NFC.Mar 27 2023, 1:10 PM This revision is now accepted and ready to land.Mar 27 2023, 1:30 PM This revision was landed with ongoing or failed builds.Mar 27 2023, 1:48 PM Closed by commit rG8e985e3604c4: [RISCV] Replace an 'else if' with 'else'+assert. NFC (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 508771 llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp
|
clang-format not found in user’s local PATH; not linting file.