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:
parent
601f6f5c64
commit
b0e73e9f23
@ -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);
|
||||
}
|
||||
|
6
test/Assembler/invalid-fp80hex.ll
Normal file
6
test/Assembler/invalid-fp80hex.ll
Normal file
@ -0,0 +1,6 @@
|
||||
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
|
||||
|
||||
; Tests bug: 24640
|
||||
; CHECK: expected '=' in global variable
|
||||
|
||||
@- 0xKate potb8ed
|
Loading…
x
Reference in New Issue
Block a user