diff options
author | Nadav Rotem <nadav.rotem@intel.com> | 2012-02-26 12:00:22 +0000 |
---|---|---|
committer | Nadav Rotem <nadav.rotem@intel.com> | 2012-02-26 12:00:22 +0000 |
commit | 63ff91d22ac3d744a5931b12a69aad39144625d5 (patch) | |
tree | 4f8b9c001214b036fb7e46c9e61a01a73000d7be | |
parent | 8e1c932ffb459f3b4f906e6d4819f435bdf3e50e (diff) | |
download | bcm5719-llvm-63ff91d22ac3d744a5931b12a69aad39144625d5.tar.gz bcm5719-llvm-63ff91d22ac3d744a5931b12a69aad39144625d5.zip |
Fix a bug in the code that checks if a store value is a vector of i1s
llvm-svn: 151487
-rw-r--r-- | llvm/tools/llvm-stress/llvm-stress.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-stress/llvm-stress.cpp b/llvm/tools/llvm-stress/llvm-stress.cpp index db35688aacb..e671c0c1949 100644 --- a/llvm/tools/llvm-stress/llvm-stress.cpp +++ b/llvm/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()); |