Skip to content

Commit 05d8a51

Browse files
committed
fix compile-time issue in spec2017 527.cam4_r
1 parent 8b9e1ec commit 05d8a51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5026,6 +5026,9 @@ InstCombinerImpl::pushFreezeToPreventPoisonFromPropagating(FreezeInst &OrigFI) {
50265026
if (U == OrigUse)
50275027
return nullptr;
50285028

5029+
if (isa<PoisonValue>(V))
5030+
continue;
5031+
50295032
auto *UserI = cast<Instruction>(U->getUser());
50305033
if (auto *PN = dyn_cast<PHINode>(UserI))
50315034
Builder.SetInsertPoint(PN->getIncomingBlock(*U)->getTerminator());

0 commit comments

Comments
 (0)