aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-23 04:13:01 +0000
committerChris Lattner <sabre@nondot.org>2001-10-23 04:13:01 +0000
commit90ebc114c66871ce5b9b98253fe767ec9246bdfe (patch)
treef7d925e1688d0cbbdc71c89816a11398e1b646a0
parentb0f20d72b1a6e1596945efbd7ac90631e7029f03 (diff)
Negative FP constants... whodathunkit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@963 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/AsmParser/Lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/Lexer.l b/lib/AsmParser/Lexer.l
index e9996b2829..b4910ec517 100644
--- a/lib/AsmParser/Lexer.l
+++ b/lib/AsmParser/Lexer.l
@@ -111,7 +111,7 @@ NInteger -[0-9]+
/* FPConstant - A Floating point constant.
TODO: Expand lexer to support 10e50 FP constant notation */
-FPConstant [0-9]+[.][0-9]*
+FPConstant -?[0-9]+[.][0-9]*
%%