[llvm] [Support] Assert that DomTree nodes share parent (PR #101198)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 31 11:52:41 PDT 2024
================
@@ -267,6 +268,8 @@ bool AlignmentFromAssumptionsPass::processAssumption(CallInst *ACall,
for (auto &U : J->uses()) {
if (U->getType()->isPointerTy()) {
Instruction *K = cast<Instruction>(U.getUser());
+ if (K->getFunction() != ACall->getFunction())
+ continue;
----------------
nikic wrote:
Is this check needed? This isn't iterating uses of a global.
https://github.com/llvm/llvm-project/pull/101198
More information about the llvm-commits
mailing list