Skip to content

Commit

Permalink
InstCombine: Fix return after else
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenm committed May 6, 2020
1 parent 89bb9f8 commit 59bc99a
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -419,11 +419,11 @@ Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) {
eraseInstFromFunction(*Copy);
++NumGlobalCopies;
return NewI;
} else {
PointerReplacer PtrReplacer(*this);
PtrReplacer.replacePointer(AI, Cast);
++NumGlobalCopies;
}

PointerReplacer PtrReplacer(*this);
PtrReplacer.replacePointer(AI, Cast);
++NumGlobalCopies;
}
}
}
Expand Down

0 comments on commit 59bc99a

Please sign in to comment.