silence vc++ warning.
authorChris Lattner <sabre@nondot.org>
Sat, 11 Jul 2009 22:32:37 +0000 (22:32 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 11 Jul 2009 22:32:37 +0000 (22:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75394 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-mc/AsmParser.cpp

index 1d9e1b6cac9c9f6e4a160f3a51e24e8232d3ed7a..a2cdea4c4dc03af5eb7c582007a377dabbedd2a9 100644 (file)
@@ -850,7 +850,7 @@ bool AsmParser::ParseDirectiveAlign(bool IsPow2, unsigned ValueSize) {
   // Compute alignment in bytes.
   if (IsPow2) {
     // FIXME: Diagnose overflow.
-    Alignment = 1 << Alignment;
+    Alignment = 1LL << Alignment;
   }
 
   // Diagnose non-sensical max bytes to fill.