summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mc/AsmParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-mc/AsmParser.cpp')
-rw-r--r--llvm/tools/llvm-mc/AsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mc/AsmParser.cpp b/llvm/tools/llvm-mc/AsmParser.cpp
index b766830bf14..eec4cc8829b 100644
--- a/llvm/tools/llvm-mc/AsmParser.cpp
+++ b/llvm/tools/llvm-mc/AsmParser.cpp
@@ -517,7 +517,7 @@ bool AsmParser::ParseStatement() {
// FIXME: Target hooks for size? Also for "word", "hword".
if (IDVal == ".byte")
return ParseDirectiveValue(1);
- if (IDVal == ".short")
+ if (IDVal == ".short" || IDVal == ".word")
return ParseDirectiveValue(2);
if (IDVal == ".long")
return ParseDirectiveValue(4);
OpenPOWER on IntegriCloud