1
0
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:
Eli Friedman 2020-04-03 14:52:18 -07:00
parent 544e601c6b
commit 7ed9262dbb

View File

@ -343,7 +343,9 @@ struct LoadModifier: public Modifier {
void Act() override { void Act() override {
// Try to use predefined pointers. If non-exist, use undef pointer value; // Try to use predefined pointers. If non-exist, use undef pointer value;
Value *Ptr = getRandomPointerValue(); 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); PT->push_back(V);
} }
}; };