@@ -184,15 +184,15 @@ class LoadInst : public UnaryInstruction {
184
184
LoadInst (Type *Ty, Value *Ptr , const Twine &NameStr, bool isVolatile,
185
185
BasicBlock *InsertAtEnd);
186
186
LoadInst (Type *Ty, Value *Ptr , const Twine &NameStr, bool isVolatile,
187
- unsigned Align, Instruction *InsertBefore = nullptr );
187
+ MaybeAlign Align, Instruction *InsertBefore = nullptr );
188
188
LoadInst (Type *Ty, Value *Ptr , const Twine &NameStr, bool isVolatile,
189
- unsigned Align, BasicBlock *InsertAtEnd);
189
+ MaybeAlign Align, BasicBlock *InsertAtEnd);
190
190
LoadInst (Type *Ty, Value *Ptr , const Twine &NameStr, bool isVolatile,
191
- unsigned Align, AtomicOrdering Order,
191
+ MaybeAlign Align, AtomicOrdering Order,
192
192
SyncScope::ID SSID = SyncScope::System,
193
193
Instruction *InsertBefore = nullptr );
194
194
LoadInst (Type *Ty, Value *Ptr , const Twine &NameStr, bool isVolatile,
195
- unsigned Align, AtomicOrdering Order, SyncScope::ID SSID,
195
+ MaybeAlign Align, AtomicOrdering Order, SyncScope::ID SSID,
196
196
BasicBlock *InsertAtEnd);
197
197
198
198
// Deprecated [opaque pointer types]
@@ -211,20 +211,20 @@ class LoadInst : public UnaryInstruction {
211
211
BasicBlock *InsertAtEnd)
212
212
: LoadInst(Ptr ->getType ()->getPointerElementType(), Ptr, NameStr,
213
213
isVolatile, InsertAtEnd) {}
214
- LoadInst (Value *Ptr , const Twine &NameStr, bool isVolatile, unsigned Align,
214
+ LoadInst (Value *Ptr , const Twine &NameStr, bool isVolatile, MaybeAlign Align,
215
215
Instruction *InsertBefore = nullptr )
216
216
: LoadInst(Ptr ->getType ()->getPointerElementType(), Ptr, NameStr,
217
217
isVolatile, Align, InsertBefore) {}
218
- LoadInst (Value *Ptr , const Twine &NameStr, bool isVolatile, unsigned Align,
218
+ LoadInst (Value *Ptr , const Twine &NameStr, bool isVolatile, MaybeAlign Align,
219
219
BasicBlock *InsertAtEnd)
220
220
: LoadInst(Ptr ->getType ()->getPointerElementType(), Ptr, NameStr,
221
221
isVolatile, Align, InsertAtEnd) {}
222
- LoadInst (Value *Ptr , const Twine &NameStr, bool isVolatile, unsigned Align,
222
+ LoadInst (Value *Ptr , const Twine &NameStr, bool isVolatile, MaybeAlign Align,
223
223
AtomicOrdering Order, SyncScope::ID SSID = SyncScope::System,
224
224
Instruction *InsertBefore = nullptr )
225
225
: LoadInst(Ptr ->getType ()->getPointerElementType(), Ptr, NameStr,
226
226
isVolatile, Align, Order, SSID, InsertBefore) {}
227
- LoadInst (Value *Ptr , const Twine &NameStr, bool isVolatile, unsigned Align,
227
+ LoadInst (Value *Ptr , const Twine &NameStr, bool isVolatile, MaybeAlign Align,
228
228
AtomicOrdering Order, SyncScope::ID SSID, BasicBlock *InsertAtEnd)
229
229
: LoadInst(Ptr ->getType ()->getPointerElementType(), Ptr, NameStr,
230
230
isVolatile, Align, Order, SSID, InsertAtEnd) {}
0 commit comments