[PATCH] D45711: [WebAssembly] Add an assertion for an invalid CFG

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 17 12:23:52 PDT 2018


dblaikie added a subscriber: aheejin.
dblaikie added a comment.

OK - so would "skipDebugInstructionsForward" ever need the end iterator?
since it should always come across a non-debug instruction (all valid BBs
have at least one non-debug instruction, the terminator - though I guess
you might call this function on an invalid basic block during
construction/intermediate state changes, etc).

& if it doesn't need the end, then it doesn't need the MBB and could be a
static function.


Repository:
  rL LLVM

https://reviews.llvm.org/D45711





More information about the llvm-commits mailing list