summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit3db1d580b3e27688c0480836e6cd37a0925e1510 (patch)
tree4f07af41664260ccf715b04ef1d2db36ef0247c9 /llvm/lib
parent18c2fbb143d7f65556cb65fa037492990a4e13b5 (diff)
downloadbcm5719-llvm-3db1d580b3e27688c0480836e6cd37a0925e1510.tar.gz
bcm5719-llvm-3db1d580b3e27688c0480836e6cd37a0925e1510.zip
Correction to assert statemtent to allow 32-bit unsigned numbers with the top bit set.
This fixes an ARM assembler crash - regression test added. llvm-svn: 207747
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index a8227fcc10b..987f14d5dcb 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/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:
OpenPOWER on IntegriCloud