Skip to content

Commit ac22ed1

Browse files
committed
Fixups
1 parent ecec3ae commit ac22ed1

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

llvm/include/llvm/CodeGen/TargetLowering.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4686,7 +4686,7 @@ class LLVM_ABI TargetLowering : public TargetLoweringBase {
46864686
llvm_unreachable("Not Implemented");
46874687
}
46884688

4689-
/// Optional target hook at add target-specific actions when entering EH pad
4689+
/// Optional target hook to add target-specific actions when entering EH pad
46904690
/// blocks. The implementation should return the resulting token chain value.
46914691
virtual SDValue lowerEHPadEntry(SDValue Chain, const SDLoc &DL,
46924692
SelectionDAG &DAG) const {

llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,11 +1734,10 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) {
17341734
continue;
17351735

17361736
if (!FastIS) {
1737-
if (SDValue NewRoot = TLI->lowerEHPadEntry(CurDAG->getRoot(),
1738-
SDB->getCurSDLoc(), *CurDAG);
1739-
NewRoot && NewRoot != CurDAG->getRoot()) {
1737+
SDValue NewRoot = TLI->lowerEHPadEntry(CurDAG->getRoot(),
1738+
SDB->getCurSDLoc(), *CurDAG);
1739+
if (NewRoot && NewRoot != CurDAG->getRoot())
17401740
CurDAG->setRoot(NewRoot);
1741-
}
17421741
}
17431742
}
17441743

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7926,7 +7926,7 @@ SDValue AArch64TargetLowering::lowerEHPadEntry(SDValue Chain, SDLoc const &DL,
79267926
// Therefore, if the function that contains this exception handler is a
79277927
// streaming[-compatible] function, we must re-enable streaming mode.
79287928
//
7929-
// These mode changes are usually optimized away in catch blocks (as they)
7929+
// These mode changes are usually optimized away in catch blocks as they
79307930
// occur before the __cxa_begin_catch (which is a non-streaming function),
79317931
// but are necessary in some cases (such as for cleanups).
79327932

0 commit comments

Comments
 (0)