1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Correctly report modified status for ObjCARCContract

Differential Revision: https://reviews.llvm.org/D81226
This commit is contained in:
serge-sans-paille 2020-06-04 23:33:54 +02:00
parent 5aad0e32c9
commit 1fde02964c

View File

@ -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: