summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBuiltin.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2010-06-17 02:26:59 +0000
committerNate Begeman <natebegeman@mac.com>2010-06-17 02:26:59 +0000
commitdbafec1f3e6b9c7b33644200ab709817a907229b (patch)
treea5f9df7a56ce036f6a176f6f0a63b54afb1a7414 /clang/lib/CodeGen/CGBuiltin.cpp
parent5712c77c89f6941e15398d96317d16302de51a30 (diff)
downloadbcm5719-llvm-dbafec1f3e6b9c7b33644200ab709817a907229b.tar.gz
bcm5719-llvm-dbafec1f3e6b9c7b33644200ab709817a907229b.zip
Remove last of the bool shifts for MS VC++, patch by dimitry andric
llvm-svn: 106206
Diffstat (limited to 'clang/lib/CodeGen/CGBuiltin.cpp')
-rw-r--r--clang/lib/CodeGen/CGBuiltin.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index db616c51e23..b9ee9020024 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud