summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBuiltin.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2016-03-30 21:33:34 +0000
committerAaron Ballman <aaron@aaronballman.com>2016-03-30 21:33:34 +0000
commitabd466ed04904683809fefba5879ff573bde6b8f (patch)
tree693b2e9ee20f367b848da792dfefac51f60cbbed /clang/lib/CodeGen/CGBuiltin.cpp
parentedc7c6b23721c910cf87984b5515ce2bc051cb48 (diff)
downloadbcm5719-llvm-abd466ed04904683809fefba5879ff573bde6b8f.tar.gz
bcm5719-llvm-abd466ed04904683809fefba5879ff573bde6b8f.zip
Silencing warnings from MSVC 2015 Update 2. Both of these changes silence "C4334 '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)". NFC.
llvm-svn: 264932
Diffstat (limited to 'clang/lib/CodeGen/CGBuiltin.cpp')
-rw-r--r--clang/lib/CodeGen/CGBuiltin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index e9eea1921dc..effdfe66b9b 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -6416,7 +6416,7 @@ Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID,
// Check the value of the bit corresponding to the feature requested.
Value *Bitset = Builder.CreateAnd(
- Features, llvm::ConstantInt::get(Int32Ty, 1 << Feature));
+ Features, llvm::ConstantInt::get(Int32Ty, 1ULL << Feature));
return Builder.CreateICmpNE(Bitset, llvm::ConstantInt::get(Int32Ty, 0));
}
case X86::BI_mm_prefetch: {
OpenPOWER on IntegriCloud