diff options
author | Karl Schimpf <kschimpf@google.com> | 2015-08-31 21:36:14 +0000 |
---|---|---|
committer | Karl Schimpf <kschimpf@google.com> | 2015-08-31 21:36:14 +0000 |
commit | 4da0e12968b39d0ce9f43c9b0012e6ef0e5129be (patch) | |
tree | 6e4eb68e31e955442f9e81eca4352d84afdd791e /llvm/lib/AsmParser/LLLexer.cpp | |
parent | 915272ff546df9931e0daf5562dec0f0091c5963 (diff) | |
download | llvm-4da0e12968b39d0ce9f43c9b0012e6ef0e5129be.zip llvm-4da0e12968b39d0ce9f43c9b0012e6ef0e5129be.tar.gz llvm-4da0e12968b39d0ce9f43c9b0012e6ef0e5129be.tar.bz2 |
Fix bug in method LLLexer::FP80HexToIntPair
llvm-svn: 246489
Diffstat (limited to 'llvm/lib/AsmParser/LLLexer.cpp')
-rw-r--r-- | llvm/lib/AsmParser/LLLexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLLexer.cpp b/llvm/lib/AsmParser/LLLexer.cpp index 6d62584..af7705c 100644 --- a/llvm/lib/AsmParser/LLLexer.cpp +++ b/llvm/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); } |