Fix an integer truncation noticed by MSVC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2009-09-06 09:35:10 +00:00
parent 5b7c3567a1
commit 12fd767ed8

View File

@ -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.