Skip to content

Commit dc35368

Browse files
committed
Remove static function unused after cf1c774.
Caused some -Werror bot failures.
1 parent 385a27d commit dc35368

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

llvm/lib/CodeGen/SelectionDAG/FastISel.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -223,21 +223,6 @@ void FastISel::flushLocalValueMap() {
223223
LastFlushPoint = FuncInfo.InsertPt;
224224
}
225225

226-
static bool isTerminatingEHLabel(MachineBasicBlock *MBB, MachineInstr &MI) {
227-
// Ignore non-EH labels.
228-
if (!MI.isEHLabel())
229-
return false;
230-
231-
// Any EH label outside a landing pad must be for an invoke. Consider it a
232-
// terminator.
233-
if (!MBB->isEHPad())
234-
return true;
235-
236-
// If this is a landingpad, the first non-phi instruction will be an EH_LABEL.
237-
// Don't consider that label to be a terminator.
238-
return MI.getIterator() != MBB->getFirstNonPHI();
239-
}
240-
241226
bool FastISel::hasTrivialKill(const Value *V) {
242227
// Don't consider constants or arguments to have trivial kills.
243228
const Instruction *I = dyn_cast<Instruction>(V);

0 commit comments

Comments
 (0)