[PATCH] D45711: [WebAssembly] Add an assertion for an invalid CFG
Heejin Ahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 16 19:49:47 PDT 2018
aheejin added a comment.
> Maybe this could be tested for, though - without debug info this findDebugLoc would potentially search forever or crash, perhaps? Since it would never compare == end (because it's a comparison across two different lists)? Seems like it'd be good to have that test case?
No, if there is at least a single instruction within `Header` and it does not have debug info, it would just return it's empty debug info. It wouldn't search onward past `end()`.
Repository:
rL LLVM
https://reviews.llvm.org/D45711
More information about the llvm-commits
mailing list