Skip to content

Commit 77b5e13

Browse files
authored
Merge pull request #62385 from compnerd/isa-dead
AddressLowering: speculative tightening of assertion
2 parents 7a688f0 + df9c085 commit 77b5e13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Mandatory/AddressLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3761,7 +3761,7 @@ static void rewriteFunction(AddressLoweringState &pass) {
37613761
uses.push_back(use);
37623762
}
37633763
for (auto *oper : uses) {
3764-
assert(isa<DebugValueInst>(oper->getUser()));
3764+
assert(oper->getUser() && isa<DebugValueInst>(oper->getUser()));
37653765
UseRewriter::rewriteUse(oper, pass);
37663766
}
37673767
}

0 commit comments

Comments
 (0)