diff options
Diffstat (limited to 'llvm/tools/llvm-stress')
| -rw-r--r-- | llvm/tools/llvm-stress/llvm-stress.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-stress/llvm-stress.cpp b/llvm/tools/llvm-stress/llvm-stress.cpp index d8ec11251ff..f7aff195e5d 100644 --- a/llvm/tools/llvm-stress/llvm-stress.cpp +++ b/llvm/tools/llvm-stress/llvm-stress.cpp @@ -356,8 +356,8 @@ struct StoreModifier: public Modifier { void Act() override { // Try to use predefined pointers. If non-exist, use undef pointer value; Value *Ptr = getRandomPointerValue(); - Type *Tp = Ptr->getType(); - Value *Val = getRandomValue(Tp->getContainedType(0)); + PointerType *Tp = Ptr->getType(); + Value *Val = getRandomValue(Tp->getElementType()); Type *ValTy = Val->getType(); // Do not store vectors of i1s because they are unsupported |

