Revert "[DomTree] Assert that blocks in queries aren't from another function"

This reverts commit 86046516e4.
This assertion fails on https://lab.llvm.org/buildbot/#/builders/98/builds/6690
Reverting it for now.
This commit is contained in:
Daniil Suchkov 2021-10-01 21:49:38 +00:00
parent 103c1bd118
commit a67c7deae7
1 changed files with 0 additions and 3 deletions

View File

@ -349,9 +349,6 @@ protected:
/// may (but is not required to) be null for a forward (backwards)
/// statically unreachable block.
DomTreeNodeBase<NodeT> *getNode(const NodeT *BB) const {
assert((!BB || !BB->getParent() || BB->getParent() == Parent) &&
"A node from another function!");
auto I = DomTreeNodes.find(BB);
if (I != DomTreeNodes.end())
return I->second.get();