projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix bug in method LLLexer::FP80HexToIntPair
[oota-llvm.git]
/
lib
/
AsmParser
/
LLLexer.cpp
diff --git
a/lib/AsmParser/LLLexer.cpp
b/lib/AsmParser/LLLexer.cpp
index 6d62584577abc033837256ee09d1709972d90c9b..af7705c56664ffa00d63ab381f63d251ed7da2fc 100644
(file)
--- a/
lib/AsmParser/LLLexer.cpp
+++ b/
lib/AsmParser/LLLexer.cpp
@@
-105,7
+105,7
@@
void LLLexer::FP80HexToIntPair(const char *Buffer, const char *End,
Pair[1] += hexDigitValue(*Buffer);
}
Pair[0] = 0;
- for (int i
=0; i<16
; i++, Buffer++) {
+ for (int i
= 0; i < 16 && Buffer != End
; i++, Buffer++) {
Pair[0] *= 16;
Pair[0] += hexDigitValue(*Buffer);
}