1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 10:32:48 +02:00

Repair compilation of llvm-stress after r350835.

Apparently it doesn't get built by 'ninja check'. :(

llvm-svn: 350843
This commit is contained in:
James Y Knight 2019-01-10 16:43:26 +00:00
parent 8782dad3bd
commit 46f3f66af0

View File

@ -356,7 +356,7 @@ struct StoreModifier: public Modifier {
void Act() override {
// Try to use predefined pointers. If non-exist, use undef pointer value;
Value *Ptr = getRandomPointerValue();
PointerType *Tp = Ptr->getType();
PointerType *Tp = cast<PointerType>(Ptr->getType());
Value *Val = getRandomValue(Tp->getElementType());
Type *ValTy = Val->getType();