forked from OSchip/llvm-project
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
This commit is contained in:
parent
edc7c6b237
commit
abd466ed04
|
@ -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: {
|
||||
|
|
|
@ -2423,7 +2423,7 @@ void MicrosoftCXXABI::EmitGuardedInit(CodeGenFunction &CGF, const VarDecl &D,
|
|||
// }
|
||||
|
||||
// Test our bit from the guard variable.
|
||||
llvm::ConstantInt *Bit = llvm::ConstantInt::get(GuardTy, 1U << GuardNum);
|
||||
llvm::ConstantInt *Bit = llvm::ConstantInt::get(GuardTy, 1ULL << GuardNum);
|
||||
llvm::LoadInst *LI = Builder.CreateLoad(GuardAddr);
|
||||
llvm::Value *IsInitialized =
|
||||
Builder.CreateICmpNE(Builder.CreateAnd(LI, Bit), Zero);
|
||||
|
|
Loading…
Reference in New Issue