Skip to content

Commit 8dd0a3d

Browse files
authored
Update InstructionCombining.cpp
1 parent 02415d5 commit 8dd0a3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3491,7 +3491,8 @@ Instruction *InstCombinerImpl::visitAllocSite(Instruction &MI) {
34913491
eraseInstFromFunction(*I);
34923492
Users[i] = nullptr; // Skip examining in the next loop.
34933493
continue;
3494-
} else if (auto *MTI = dyn_cast<MemTransferInst>(I)) {
3494+
}
3495+
if (auto *MTI = dyn_cast<MemTransferInst>(I)) {
34953496
if (KnowInitZero && isRefSet(*Removable)) {
34963497
IRBuilderBase::InsertPointGuard Guard(Builder);
34973498
Builder.SetInsertPoint(MTI);

0 commit comments

Comments
 (0)