Skip to content

Commit 453332d

Browse files
Review fix 3
Change-Id: If87e6cbe36d008805ccc14e77660d245eaa64ed9
1 parent e5ad36c commit 453332d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5180,7 +5180,7 @@ Instruction *InstCombinerImpl::visitFreeze(FreezeInst &I) {
51805180
// TODO: This could use getBinopAbsorber() / getBinopIdentity() to avoid
51815181
// duplicating logic for binops at least.
51825182
auto getUndefReplacement = [&](Type *Ty) {
5183-
auto pickCommonConstantFromPHI = [&](PHINode &PN) -> Value * {
5183+
auto pickCommonConstantFromPHI = [](PHINode &PN) -> Value * {
51845184
// phi(freeze(undef), C, C). Choose C for freeze so the PHI can be
51855185
// removed.
51865186
Constant *BestValue = nullptr;
@@ -5192,7 +5192,7 @@ Instruction *InstCombinerImpl::visitFreeze(FreezeInst &I) {
51925192
if (!isa<Constant>(V))
51935193
return nullptr;
51945194

5195-
if (!isGuaranteedNotToBeUndefOrPoison(V, &AC, &I, &DT))
5195+
if (!isGuaranteedNotToBeUndefOrPoison(V))
51965196
return nullptr;
51975197

51985198
C = cast<Constant>(V);

0 commit comments

Comments
 (0)