aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser
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
commit1a95c3f6cba7647c28cbdffa59a3886eeb7977d0 (patch)
tree3764398c0ce3bdba9db8ace080a50e9d4c4339bf /lib/AsmParser
parent17e73c23796f0c6700058a64d33bf7c9a0b0e6ef (diff)
downloadexternal_llvm-1a95c3f6cba7647c28cbdffa59a3886eeb7977d0.zip
external_llvm-1a95c3f6cba7647c28cbdffa59a3886eeb7977d0.tar.gz
external_llvm-1a95c3f6cba7647c28cbdffa59a3886eeb7977d0.tar.bz2
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')
-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 310ea5b..25b532f 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!");
}