aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-mc/AsmParser.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-09-06 09:35:10 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-09-06 09:35:10 +0000
commita118e65f108d5222f359ff32d24a27bdcaf27eb1 (patch)
tree07b37544117f9776725cde81c1e93bff0364d030 /tools/llvm-mc/AsmParser.cpp
parentdefe7950099b9f472d0dc03d621b1c8cd72ecc4d (diff)
downloadexternal_llvm-a118e65f108d5222f359ff32d24a27bdcaf27eb1.zip
external_llvm-a118e65f108d5222f359ff32d24a27bdcaf27eb1.tar.gz
external_llvm-a118e65f108d5222f359ff32d24a27bdcaf27eb1.tar.bz2
Fix an integer truncation noticed by MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc/AsmParser.cpp')
-rw-r--r--tools/llvm-mc/AsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp
index a782561..f51f43a 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.