Skip to content

Commit 940ff11

Browse files
authored
[InstCombine] fix hwasan mistake in "remove dead loads" (#145057)
Detected by CI after #143958.
1 parent 8775119 commit 940ff11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3490,6 +3490,7 @@ Instruction *InstCombinerImpl::visitAllocSite(Instruction &MI) {
34903490
replaceInstUsesWith(*I, Result);
34913491
eraseInstFromFunction(*I);
34923492
Users[i] = nullptr; // Skip examining in the next loop.
3493+
continue;
34933494
}
34943495
if (auto *MTI = dyn_cast<MemTransferInst>(I)) {
34953496
if (KnowInitZero && isRefSet(*Removable)) {

0 commit comments

Comments
 (0)