Skip to content

Commit 381eb04

Browse files
committed
Update DemoteRegToStack.cpp
1 parent 5e5b8fb commit 381eb04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/DemoteRegToStack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ bool llvm::DemotePHIToStack(Function &F) {
188188
for (PHINode *PN : PHIsToDemote) {
189189
Instruction *AllocaPoint = F.begin()->getTerminator();
190190
if (AllocaPoint) {
191-
Changed = DemotePHIToStack(PN, AllocaPoint) != nullptr;
191+
Changed |= DemotePHIToStack(PN, AllocaPoint) != nullptr;
192192
}
193193
}
194194
}

0 commit comments

Comments
 (0)