Skip to content

Commit d509972

Browse files
committed
[SPIRVPrepareFunctions] Report change when removing lifetime intrinsics
Should hopefully fix EXPENSIVE_CHECKS build.
1 parent 44a6e00 commit d509972

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/SPIRV/SPIRVPrepareFunctions.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ bool SPIRVPrepareFunctions::substituteIntrinsicCalls(Function *F) {
410410
II, Intrinsic::SPVIntrinsics::spv_lifetime_start, {1});
411411
} else {
412412
II->eraseFromParent();
413+
Changed = true;
413414
}
414415
break;
415416
case Intrinsic::lifetime_end:
@@ -418,6 +419,7 @@ bool SPIRVPrepareFunctions::substituteIntrinsicCalls(Function *F) {
418419
II, Intrinsic::SPVIntrinsics::spv_lifetime_end, {1});
419420
} else {
420421
II->eraseFromParent();
422+
Changed = true;
421423
}
422424
break;
423425
case Intrinsic::ptr_annotation:

0 commit comments

Comments
 (0)