@@ -1371,50 +1371,46 @@ StoreInst::StoreInst(Value *val, Value *addr, BasicBlock *InsertAtEnd)
1371
1371
1372
1372
StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1373
1373
Instruction *InsertBefore)
1374
- : StoreInst(val, addr, isVolatile, /*Align=*/0 , InsertBefore) {}
1374
+ : StoreInst(val, addr, isVolatile, /*Align=*/None , InsertBefore) {}
1375
1375
1376
1376
StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1377
1377
BasicBlock *InsertAtEnd)
1378
- : StoreInst(val, addr, isVolatile, /*Align=*/0 , InsertAtEnd) {}
1378
+ : StoreInst(val, addr, isVolatile, /*Align=*/None , InsertAtEnd) {}
1379
1379
1380
- StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, unsigned Align,
1380
+ StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, MaybeAlign Align,
1381
1381
Instruction *InsertBefore)
1382
1382
: StoreInst(val, addr, isVolatile, Align, AtomicOrdering::NotAtomic,
1383
1383
SyncScope::System, InsertBefore) {}
1384
1384
1385
- StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, unsigned Align,
1385
+ StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, MaybeAlign Align,
1386
1386
BasicBlock *InsertAtEnd)
1387
1387
: StoreInst(val, addr, isVolatile, Align, AtomicOrdering::NotAtomic,
1388
1388
SyncScope::System, InsertAtEnd) {}
1389
1389
1390
- StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1391
- unsigned Align, AtomicOrdering Order,
1392
- SyncScope::ID SSID,
1390
+ StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, MaybeAlign Align,
1391
+ AtomicOrdering Order, SyncScope::ID SSID,
1393
1392
Instruction *InsertBefore)
1394
- : Instruction(Type::getVoidTy(val->getContext()), Store,
1395
- OperandTraits<StoreInst>::op_begin(this),
1396
- OperandTraits<StoreInst>::operands(this),
1397
- InsertBefore) {
1393
+ : Instruction(Type::getVoidTy(val->getContext()), Store,
1394
+ OperandTraits<StoreInst>::op_begin(this),
1395
+ OperandTraits<StoreInst>::operands(this), InsertBefore) {
1398
1396
Op<0>() = val;
1399
1397
Op<1>() = addr;
1400
1398
setVolatile(isVolatile);
1401
- setAlignment(MaybeAlign( Align) );
1399
+ setAlignment(Align);
1402
1400
setAtomic(Order, SSID);
1403
1401
AssertOK();
1404
1402
}
1405
1403
1406
- StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile,
1407
- unsigned Align, AtomicOrdering Order,
1408
- SyncScope::ID SSID,
1404
+ StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, MaybeAlign Align,
1405
+ AtomicOrdering Order, SyncScope::ID SSID,
1409
1406
BasicBlock *InsertAtEnd)
1410
- : Instruction(Type::getVoidTy(val->getContext()), Store,
1411
- OperandTraits<StoreInst>::op_begin(this),
1412
- OperandTraits<StoreInst>::operands(this),
1413
- InsertAtEnd) {
1407
+ : Instruction(Type::getVoidTy(val->getContext()), Store,
1408
+ OperandTraits<StoreInst>::op_begin(this),
1409
+ OperandTraits<StoreInst>::operands(this), InsertAtEnd) {
1414
1410
Op<0>() = val;
1415
1411
Op<1>() = addr;
1416
1412
setVolatile(isVolatile);
1417
- setAlignment(MaybeAlign( Align) );
1413
+ setAlignment(Align);
1418
1414
setAtomic(Order, SSID);
1419
1415
AssertOK();
1420
1416
}
@@ -4146,8 +4142,8 @@ LoadInst *LoadInst::cloneImpl() const {
4146
4142
4147
4143
StoreInst *StoreInst::cloneImpl() const {
4148
4144
return new StoreInst(getOperand(0), getOperand(1), isVolatile(),
4149
- getAlignment(), getOrdering(), getSyncScopeID());
4150
-
4145
+ MaybeAlign( getAlignment()) , getOrdering(),
4146
+ getSyncScopeID());
4151
4147
}
4152
4148
4153
4149
AtomicCmpXchgInst *AtomicCmpXchgInst::cloneImpl() const {
0 commit comments