[PATCH] D46399: Skip blocks with no predecessors for CFIInstrInserter verify
Petar Jovanovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 3 16:30:41 PDT 2018
petarj updated this revision to Diff 145115.
petarj marked 2 inline comments as done.
petarj added a comment.
Updated the patch according to the comments.
https://reviews.llvm.org/D46399
Files:
lib/CodeGen/CFIInstrInserter.cpp
Index: lib/CodeGen/CFIInstrInserter.cpp
===================================================================
--- lib/CodeGen/CFIInstrInserter.cpp
+++ lib/CodeGen/CFIInstrInserter.cpp
@@ -293,6 +293,8 @@
unsigned ErrorNum = 0;
for (MachineBasicBlock &CurrMBB : MF) {
const MBBCFAInfo &CurrMBBInfo = MBBVector[CurrMBB.getNumber()];
+ if (&CurrMBB != &MF.front() && CurrMBB.pred_empty())
+ continue;
for (MachineBasicBlock *Succ : CurrMBB.successors()) {
const MBBCFAInfo &SuccMBBInfo = MBBVector[Succ->getNumber()];
// Check that incoming offset and register values of successors match the
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46399.145115.patch
Type: text/x-patch
Size: 625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180503/993b316a/attachment.bin>
More information about the llvm-commits
mailing list