[PATCH] D110751: [DomTree] Assert that blocks in queries aren't from another function
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 29 14:33:06 PDT 2021
nikic added inline comments.
================
Comment at: llvm/include/llvm/Support/GenericDomTree.h:353
+ assert((!BB || !BB->getParent() || BB->getParent() == Parent) &&
+ "A node from another function!");
+
----------------
Is `!BB` really a valid input to this function?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110751/new/
https://reviews.llvm.org/D110751
More information about the llvm-commits
mailing list