[PATCH] D46635: [SimplifyCFG] Fix a debug invariant bug in FoldBranchToCommonDest()
Davide Italiano via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 9 08:10:20 PDT 2018
davide added inline comments.
================
Comment at: lib/Transforms/Utils/SimplifyCFG.cpp:2580-2585
BasicBlock::iterator CondIt = ++Cond->getIterator();
// Ignore dbg intrinsics.
while (isa<DbgInfoIntrinsic>(CondIt))
++CondIt;
----------------
Can `Cond` be a `DbgInfoIntrinsic` here?
Repository:
rL LLVM
https://reviews.llvm.org/D46635
More information about the llvm-commits
mailing list