aboutsummaryrefslogtreecommitdiff
path: root/lib/AsmParser/LLLexer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-18 18:25:18 +0000
committerChris Lattner <sabre@nondot.org>2007-11-18 18:25:18 +0000
commitd343c6b70ec03b357d42e47ce7c00b3c3cb78efd (patch)
tree3764398c0ce3bdba9db8ace080a50e9d4c4339bf /lib/AsmParser/LLLexer.cpp
parent8e3a8e0452695643d04c21e15c94b802aef81bae (diff)
Bugfix, this fixes CodeGen/X86/ldzero.ll and CodeGen/X86/2007-10-16-fp80_select.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44215 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/LLLexer.cpp')
-rw-r--r--lib/AsmParser/LLLexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/LLLexer.cpp b/lib/AsmParser/LLLexer.cpp
index 310ea5b052..25b532fb7b 100644
--- a/lib/AsmParser/LLLexer.cpp
+++ b/lib/AsmParser/LLLexer.cpp
@@ -93,7 +93,7 @@ static void HexToIntPair(const char *Buffer, const char *End, uint64_t Pair[2]){
else if (C >= 'a' && C <= 'f')
Pair[1] += C-'a'+10;
}
- if (*Buffer)
+ if (Buffer != End)
GenerateError("constant bigger than 128 bits detected!");
}