From: Benjamin Kramer Date: Sun, 6 Sep 2009 09:35:10 +0000 (+0000) Subject: Fix an integer truncation noticed by MSVC. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=12fd767ed819e3ea34670cc6f3e790bd0d88ee94;p=oota-llvm.git Fix an integer truncation noticed by MSVC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81109 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp index a7825615001..f51f43adc12 100644 --- a/tools/llvm-mc/AsmParser.cpp +++ b/tools/llvm-mc/AsmParser.cpp @@ -1111,7 +1111,7 @@ bool AsmParser::ParseDirectiveAlign(bool IsPow2, unsigned ValueSize) { Alignment = 31; } - Alignment = 1 << Alignment; + Alignment = 1ULL << Alignment; } // Diagnose non-sensical max bytes to align.