Skip to content

Commit

Permalink
Correctly report modified status for ObjCARCContract
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D81226
  • Loading branch information
serge-sans-paille committed Jun 5, 2020
1 parent 80f1ec7 commit 1086d77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ bool ObjCARCContract::tryToPeepholeInstruction(
return true;
case ARCInstKind::IntrinsicUser:
// Remove calls to @llvm.objc.clang.arc.use(...).
Changed = true;
Inst->eraseFromParent();
return true;
default:
Expand Down

0 comments on commit 1086d77

Please sign in to comment.