diff options
author | Nate Begeman <natebegeman@mac.com> | 2010-06-17 02:26:59 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2010-06-17 02:26:59 +0000 |
commit | d69ec16b1b03b4a97c571ff14f15769fe13c1e5a (patch) | |
tree | 5094c8784121a9bae17fca2eb7d9d5caebeb2220 /lib/CodeGen/CGBuiltin.cpp | |
parent | 9c3e84ffe0938cd6a73dd16d9a8b54b498863fef (diff) |
Remove last of the bool shifts for MS VC++, patch by dimitry andric
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106206 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBuiltin.cpp')
-rw-r--r-- | lib/CodeGen/CGBuiltin.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/CodeGen/CGBuiltin.cpp b/lib/CodeGen/CGBuiltin.cpp index db616c51e2..b9ee902002 100644 --- a/lib/CodeGen/CGBuiltin.cpp +++ b/lib/CodeGen/CGBuiltin.cpp @@ -952,13 +952,13 @@ const llvm::Type *GetNeonType(LLVMContext &Ctx, unsigned type, bool q) { switch (type) { default: break; case 0: - case 5: return llvm::VectorType::get(llvm::Type::getInt8Ty(Ctx), 8 << q); + case 5: return llvm::VectorType::get(llvm::Type::getInt8Ty(Ctx), 8 << (int)q); case 6: case 7: - case 1: return llvm::VectorType::get(llvm::Type::getInt16Ty(Ctx), 4 << q); - case 2: return llvm::VectorType::get(llvm::Type::getInt32Ty(Ctx), 2 << q); - case 3: return llvm::VectorType::get(llvm::Type::getInt64Ty(Ctx), 1 << q); - case 4: return llvm::VectorType::get(llvm::Type::getFloatTy(Ctx), 2 << q); + case 1: return llvm::VectorType::get(llvm::Type::getInt16Ty(Ctx), 4 << (int)q); + case 2: return llvm::VectorType::get(llvm::Type::getInt32Ty(Ctx), 2 << (int)q); + case 3: return llvm::VectorType::get(llvm::Type::getInt64Ty(Ctx), 1 << (int)q); + case 4: return llvm::VectorType::get(llvm::Type::getFloatTy(Ctx), 2 << (int)q); }; return 0; } |