1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Fix bug in method LLLexer::FP80HexToIntPair

llvm-svn: 246489
This commit is contained in:
Karl Schimpf 2015-08-31 21:36:14 +00:00
parent 601f6f5c64
commit b0e73e9f23
2 changed files with 7 additions and 1 deletions

View File

@ -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);
}

View File

@ -0,0 +1,6 @@
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; Tests bug: 24640
; CHECK: expected '=' in global variable
@- 0xKate potb8ed