diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-06-12 00:41:19 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-06-12 00:41:19 +0000 |
commit | 99d1eab32745ab1fac33a4ca74b837244fb6e097 (patch) | |
tree | 2e624f924da4d423c0eabe0671e75475df92b446 /llvm/lib/IR/Constants.cpp | |
parent | 778a7eddb5936aa1bb2a7d5c835191349797a6b2 (diff) | |
download | bcm5719-llvm-99d1eab32745ab1fac33a4ca74b837244fb6e097.tar.gz bcm5719-llvm-99d1eab32745ab1fac33a4ca74b837244fb6e097.zip |
[IR] Require ArrayRef of 'uint32_t' instead of 'int' for the mask argument for one of the signatures of CreateShuffleVector. This better emphasises that you can't use it for the -1 as undef behavior.
llvm-svn: 272491
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r-- | llvm/lib/IR/Constants.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp index 37cffe38bab..35233ae522a 100644 --- a/llvm/lib/IR/Constants.cpp +++ b/llvm/lib/IR/Constants.cpp @@ -2500,11 +2500,6 @@ Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint32_t> Elts) const char *Data = reinterpret_cast<const char *>(Elts.data()); return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty); } -Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<int32_t> Elts){ - Type *Ty = VectorType::get(Type::getInt32Ty(Context), Elts.size()); - const char *Data = reinterpret_cast<const char *>(Elts.data()); - return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty); -} Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint64_t> Elts){ Type *Ty = VectorType::get(Type::getInt64Ty(Context), Elts.size()); const char *Data = reinterpret_cast<const char *>(Elts.data()); |