mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[llvm-stress][opaque pointers] Remove use of deprecated constructor
(See also D76269.)
This commit is contained in:
parent
544e601c6b
commit
7ed9262dbb
@ -343,7 +343,9 @@ struct LoadModifier: public Modifier {
|
||||
void Act() override {
|
||||
// Try to use predefined pointers. If non-exist, use undef pointer value;
|
||||
Value *Ptr = getRandomPointerValue();
|
||||
Value *V = new LoadInst(Ptr, "L", BB->getTerminator());
|
||||
PointerType *Tp = cast<PointerType>(Ptr->getType());
|
||||
Value *V = new LoadInst(Tp->getElementType(), Ptr, "L",
|
||||
BB->getTerminator());
|
||||
PT->push_back(V);
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user