[llvm] 7111d03 - [Xtensa] Fix Clang -Wundefined-bool-conversion after #113450
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 10 09:54:28 PST 2024
Author: Fangrui Song
Date: 2024-11-10T09:54:22-08:00
New Revision: 7111d031f19ce7d523796b4812d6afcb2958b025
URL: https://github.com/llvm/llvm-project/commit/7111d031f19ce7d523796b4812d6afcb2958b025
DIFF: https://github.com/llvm/llvm-project/commit/7111d031f19ce7d523796b4812d6afcb2958b025.diff
LOG: [Xtensa] Fix Clang -Wundefined-bool-conversion after #113450
Added:
Modified:
llvm/lib/Target/Xtensa/XtensaInstrInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Xtensa/XtensaInstrInfo.cpp b/llvm/lib/Target/Xtensa/XtensaInstrInfo.cpp
index 4c440da715fefe..7e00215ef3b971 100644
--- a/llvm/lib/Target/Xtensa/XtensaInstrInfo.cpp
+++ b/llvm/lib/Target/Xtensa/XtensaInstrInfo.cpp
@@ -529,8 +529,6 @@ void XtensaInstrInfo::insertIndirectBranch(MachineBasicBlock &MBB,
unsigned XtensaInstrInfo::insertConstBranchAtInst(
MachineBasicBlock &MBB, MachineInstr *I, int64_t offset,
ArrayRef<MachineOperand> Cond, DebugLoc DL, int *BytesAdded) const {
- // Shouldn't be a fall through.
- assert(&MBB && "InsertBranch must not be told to insert a fallthrough");
assert(Cond.size() <= 4 &&
"Xtensa branch conditions have less than four components!");
More information about the llvm-commits
mailing list