summaryrefslogtreecommitdiff
path: root/lib/Target/ARM
diff options
context:
space:
mode:
authorRichard Barton <richard.barton@arm.com>2014-05-01 11:37:44 +0000
committerRichard Barton <richard.barton@arm.com>2014-05-01 11:37:44 +0000
commit8b88679164bfe1bf70dff504c86789f809a15563 (patch)
tree60f746f4991ef5d80368da8ef5054806d8ba8631 /lib/Target/ARM
parent06ace3c8697a80f87773f51eb355c9f85fb01e61 (diff)
downloadllvm-8b88679164bfe1bf70dff504c86789f809a15563.tar.gz
llvm-8b88679164bfe1bf70dff504c86789f809a15563.tar.bz2
llvm-8b88679164bfe1bf70dff504c86789f809a15563.tar.xz
Correction to assert statemtent to allow 32-bit unsigned numbers with the top bit set.
This fixes an ARM assembler crash - regression test added. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r--lib/Target/ARM/AsmParser/ARMAsmParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index a8227fcc10..987f14d5dc 100644
--- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -9487,8 +9487,8 @@ unsigned ARMAsmParser::validateTargetOperandClass(MCParsedAsmOperand *AsmOp,
int64_t Value;
if (!SOExpr->EvaluateAsAbsolute(Value))
return Match_Success;
- assert((Value >= INT32_MIN && Value <= INT32_MAX) &&
- "expression value must be representiable in 32 bits");
+ assert((Value >= INT32_MIN && Value <= UINT32_MAX) &&
+ "expression value must be representable in 32 bits");
}
break;
case MCK_GPRPair: