summaryrefslogtreecommitdiff
path: root/tools/llvm-stress/llvm-stress.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvm-stress/llvm-stress.cpp')
-rw-r--r--tools/llvm-stress/llvm-stress.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvm-stress/llvm-stress.cpp b/tools/llvm-stress/llvm-stress.cpp
index db35688aacb..e671c0c1949 100644
--- a/tools/llvm-stress/llvm-stress.cpp
+++ b/tools/llvm-stress/llvm-stress.cpp
@@ -224,10 +224,11 @@ struct StoreModifier: public Modifier {
Value *Ptr = getRandomPointerValue();
Type *Tp = Ptr->getType();
Value *Val = getRandomValue(Tp->getContainedType(0));
+ Type *ValTy = Val->getType();
// Do not store vectors of i1s because they are unsupported
//by the codegen.
- if (Tp->isVectorTy() && Tp->getScalarSizeInBits() == 1)
+ if (ValTy->isVectorTy() && (ValTy->getScalarSizeInBits() == 1))
return;
new StoreInst(Val, Ptr, BB->getTerminator());