File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
llvm/lib/Transforms/ObjCARC Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ CallInst *BundledRetainClaimRVs::insertRVCallWithColors(
114
114
}
115
115
116
116
BundledRetainClaimRVs::~BundledRetainClaimRVs () {
117
- if (ContractPass ) {
118
- for ( auto P : RVCalls ) {
117
+ for ( auto P : RVCalls ) {
118
+ if (ContractPass ) {
119
119
CallBase *CB = P.second ;
120
120
// At this point, we know that the annotated calls can't be tail calls
121
121
// as they are followed by marker instructions and retainRV/claimRV
@@ -129,10 +129,9 @@ BundledRetainClaimRVs::~BundledRetainClaimRVs() {
129
129
auto *NewCB = CallBase::Create (CB, OB, CB);
130
130
CB->replaceAllUsesWith (NewCB);
131
131
CB->eraseFromParent ();
132
- }
133
- } else {
134
- for (auto P : RVCalls)
132
+ } else {
135
133
EraseInstruction (P.first );
134
+ }
136
135
}
137
136
138
137
RVCalls.clear ();
You can’t perform that action at this time.
0 commit comments