[PATCH] D79605: MachineBasicBlock::updateTerminator now requires an explicit layout successor.
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 16 13:45:35 PDT 2020
efriedma accepted this revision.
efriedma added a comment.
This revision is now accepted and ready to land.
LGTM with a couple minor comments.
================
Comment at: llvm/lib/CodeGen/MachineBasicBlock.cpp:593
+ if (!PreviousLayoutSuccessor || !isSuccessor(PreviousLayoutSuccessor)
+ || PreviousLayoutSuccessor->isEHPad())
return;
----------------
nit: please clang-format
================
Comment at: llvm/lib/CodeGen/MachineBasicBlock.cpp:622
+ assert(PreviousLayoutSuccessor);
+ assert(isSuccessor(PreviousLayoutSuccessor));
----------------
Might as well `assert(!PreviousLayoutSuccessor->isEHPad())`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79605/new/
https://reviews.llvm.org/D79605
More information about the llvm-commits
mailing list