Silencing a 32-bit implicit conversion warning in MSVC; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Wed, 3 Dec 2014 14:39:58 +0000 (14:39 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 3 Dec 2014 14:39:58 +0000 (14:39 +0000)
llvm-svn: 223237

llvm/lib/Target/R600/AMDGPUAsmPrinter.cpp

index 008cf2d..36d4509 100644 (file)
@@ -470,7 +470,7 @@ void AMDGPUAsmPrinter::EmitAmdKernelCodeT(const MachineFunction &MF,
 
   header.target_chip = STM.getAmdKernelCodeChipID();
 
-  header.kernel_code_entry_byte_offset = (1 << MF.getAlignment());
+  header.kernel_code_entry_byte_offset = (1ULL << MF.getAlignment());
 
   header.compute_pgm_resource_registers =
       KernelInfo.ComputePGMRSrc1 |