mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[opaque pointer type] LoadInst: assert that the explicit type matches the implicit one
llvm-svn: 237830
This commit is contained in:
parent
8911bd2714
commit
30e6e29e4a
@ -953,6 +953,7 @@ LoadInst::LoadInst(Type *Ty, Value *Ptr, const Twine &Name, bool isVolatile,
|
||||
unsigned Align, AtomicOrdering Order,
|
||||
SynchronizationScope SynchScope, Instruction *InsertBef)
|
||||
: UnaryInstruction(Ty, Load, Ptr, InsertBef) {
|
||||
assert(Ty == cast<PointerType>(Ptr->getType())->getElementType());
|
||||
setVolatile(isVolatile);
|
||||
setAlignment(Align);
|
||||
setAtomic(Order, SynchScope);
|
||||
|
Loading…
x
Reference in New Issue
Block a user