[llvm] [Support] Assert that DomTree nodes share parent (PR #101198)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 09:28:53 PDT 2024
================
@@ -526,6 +526,10 @@ bool llvm::isValidAssumeForContext(const Instruction *Inv,
return AllowEphemerals || !isEphemeralValueOf(Inv, CxtI);
}
+ // Inv and CxtI are in different functions.
+ if (Inv->getFunction() != CxtI->getFunction())
----------------
nikic wrote:
Which caller has a context from a different function?
https://github.com/llvm/llvm-project/pull/101198
More information about the llvm-commits
mailing list