diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2016-03-30 21:30:00 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2016-03-30 21:30:00 +0000 |
commit | ef0fe1eed827ba8f9c6d76200821dc24ec6f038f (patch) | |
tree | 13991a9058526c1d5989e5c1ce9a1d2a4a6a50b4 /llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp | |
parent | 46ba31650e9eb5f95990adc240c7d1e925c57381 (diff) | |
download | bcm5719-llvm-ef0fe1eed827ba8f9c6d76200821dc24ec6f038f.tar.gz bcm5719-llvm-ef0fe1eed827ba8f9c6d76200821dc24ec6f038f.zip |
Silencing warnings from MSVC 2015 Update 2. All of these changes silence "C4334 '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)". NFC.
llvm-svn: 264929
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp index 9c069f4fef9..1ef9f597dc2 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp @@ -502,7 +502,7 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo, ProgInfo.LDSSize = MFI->LDSSize + LDSSpillSize; ProgInfo.LDSBlocks = - alignTo(ProgInfo.LDSSize, 1 << LDSAlignShift) >> LDSAlignShift; + alignTo(ProgInfo.LDSSize, 1ULL << LDSAlignShift) >> LDSAlignShift; // Scratch is allocated in 256 dword blocks. unsigned ScratchAlignShift = 10; @@ -511,7 +511,7 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo, // scratch memory used per thread. ProgInfo.ScratchBlocks = alignTo(ProgInfo.ScratchSize * STM.getWavefrontSize(), - 1 << ScratchAlignShift) >> + 1ULL << ScratchAlignShift) >> ScratchAlignShift; ProgInfo.ComputePGMRSrc1 = |