@@ -119,7 +119,6 @@ class ARCEntryPointBuilder {
119
119
120
120
// Create the call.
121
121
CallInst *CI = CreateCall (getRetain (OrigI), V);
122
- CI->setTailCall (true );
123
122
return CI;
124
123
}
125
124
@@ -129,7 +128,6 @@ class ARCEntryPointBuilder {
129
128
130
129
// Create the call.
131
130
CallInst *CI = CreateCall (getRelease (OrigI), V);
132
- CI->setTailCall (true );
133
131
return CI;
134
132
}
135
133
@@ -139,23 +137,20 @@ class ARCEntryPointBuilder {
139
137
V = B.CreatePointerCast (V, getObjectPtrTy ());
140
138
141
139
CallInst *CI = CreateCall (getCheckUnowned (OrigI), V);
142
- CI->setTailCall (true );
143
140
return CI;
144
141
}
145
142
146
143
CallInst *createRetainN (Value *V, uint32_t n, CallInst *OrigI) {
147
144
// Cast just to make sure that we have the right object type.
148
145
V = B.CreatePointerCast (V, getObjectPtrTy ());
149
146
CallInst *CI = CreateCall (getRetainN (OrigI), {V, getIntConstant (n)});
150
- CI->setTailCall (true );
151
147
return CI;
152
148
}
153
149
154
150
CallInst *createReleaseN (Value *V, uint32_t n, CallInst *OrigI) {
155
151
// Cast just to make sure we have the right object type.
156
152
V = B.CreatePointerCast (V, getObjectPtrTy ());
157
153
CallInst *CI = CreateCall (getReleaseN (OrigI), {V, getIntConstant (n)});
158
- CI->setTailCall (true );
159
154
return CI;
160
155
}
161
156
@@ -164,7 +159,6 @@ class ARCEntryPointBuilder {
164
159
V = B.CreatePointerCast (V, getObjectPtrTy ());
165
160
CallInst *CI =
166
161
CreateCall (getUnknownObjectRetainN (OrigI), {V, getIntConstant (n)});
167
- CI->setTailCall (true );
168
162
return CI;
169
163
}
170
164
@@ -173,23 +167,20 @@ class ARCEntryPointBuilder {
173
167
V = B.CreatePointerCast (V, getObjectPtrTy ());
174
168
CallInst *CI =
175
169
CreateCall (getUnknownObjectReleaseN (OrigI), {V, getIntConstant (n)});
176
- CI->setTailCall (true );
177
170
return CI;
178
171
}
179
172
180
173
CallInst *createBridgeRetainN (Value *V, uint32_t n, CallInst *OrigI) {
181
174
// Cast just to make sure we have the right object type.
182
175
V = B.CreatePointerCast (V, getBridgeObjectPtrTy ());
183
176
CallInst *CI = CreateCall (getBridgeRetainN (OrigI), {V, getIntConstant (n)});
184
- CI->setTailCall (true );
185
177
return CI;
186
178
}
187
179
188
180
CallInst *createBridgeReleaseN (Value *V, uint32_t n, CallInst *OrigI) {
189
181
// Cast just to make sure we have the right object type.
190
182
V = B.CreatePointerCast (V, getBridgeObjectPtrTy ());
191
183
CallInst *CI = CreateCall (getBridgeReleaseN (OrigI), {V, getIntConstant (n)});
192
- CI->setTailCall (true );
193
184
return CI;
194
185
}
195
186
0 commit comments