@@ -1241,32 +1241,28 @@ AllocaInst *AllocaInst::create(Type *Ty, unsigned AddrSpace,
1241
1241
void AllocaInst::setAllocatedType (Type *Ty) {
1242
1242
auto &Tracker = Ctx.getTracker ();
1243
1243
if (Tracker.isTracking ())
1244
- Tracker.track (std::make_unique<AllocaSetAllocatedType>(
1245
- cast<AllocaInst>(this ), Tracker));
1244
+ Tracker.track (std::make_unique<AllocaSetAllocatedType>(this , Tracker));
1246
1245
cast<llvm::AllocaInst>(Val)->setAllocatedType (Ty);
1247
1246
}
1248
1247
1249
1248
void AllocaInst::setAlignment (Align Align) {
1250
1249
auto &Tracker = Ctx.getTracker ();
1251
1250
if (Tracker.isTracking ())
1252
- Tracker.track (
1253
- std::make_unique<AllocaSetAlignment>(cast<AllocaInst>(this ), Tracker));
1251
+ Tracker.track (std::make_unique<AllocaSetAlignment>(this , Tracker));
1254
1252
cast<llvm::AllocaInst>(Val)->setAlignment (Align);
1255
1253
}
1256
1254
1257
1255
void AllocaInst::setUsedWithInAlloca (bool V) {
1258
1256
auto &Tracker = Ctx.getTracker ();
1259
1257
if (Tracker.isTracking ())
1260
- Tracker.track (std::make_unique<AllocaSetUsedWithInAlloca>(
1261
- cast<AllocaInst>(this ), Tracker));
1258
+ Tracker.track (std::make_unique<AllocaSetUsedWithInAlloca>(this , Tracker));
1262
1259
cast<llvm::AllocaInst>(Val)->setUsedWithInAlloca (V);
1263
1260
}
1264
1261
1265
1262
void AllocaInst::setSwiftError (bool V) {
1266
1263
auto &Tracker = Ctx.getTracker ();
1267
1264
if (Tracker.isTracking ())
1268
- Tracker.track (
1269
- std::make_unique<AllocaSetSwiftError>(cast<AllocaInst>(this ), Tracker));
1265
+ Tracker.track (std::make_unique<AllocaSetSwiftError>(this , Tracker));
1270
1266
cast<llvm::AllocaInst>(Val)->setSwiftError (V);
1271
1267
}
1272
1268
0 commit comments