File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -584,7 +584,8 @@ static bool getCompressDebugSections(opt::InputArgList &Args) {
584
584
static int parseInt (StringRef S, opt::Arg *Arg) {
585
585
int V = 0 ;
586
586
if (!to_integer (S, V, 10 ))
587
- error (Arg->getSpelling () + " : number expected, but got '" + S + " '" );
587
+ error (Arg->getSpelling () + " =" + Arg->getValue () +
588
+ " : number expected, but got '" + S + " '" );
588
589
return V;
589
590
}
590
591
Original file line number Diff line number Diff line change 19
19
; RUN: FileCheck --check-prefix=INVALID1 %s
20
20
; RUN: not ld.lld -o %t3 -m elf_x86_64 -e main --plugin-opt=Ofoo %t.o 2>&1 | \
21
21
; RUN: FileCheck --check-prefix=INVALID2 %s
22
- ; INVALID2: --plugin-opt: number expected, but got 'foo'
22
+ ; INVALID2: --plugin-opt=Ofoo : number expected, but got 'foo'
23
23
24
24
; RUN: not ld.lld -o %t3 -m elf_x86_64 -e main --lto-O-1 %t.o 2>&1 | \
25
25
; RUN: FileCheck --check-prefix=INVALIDNEGATIVE1 %s
You can’t perform that action at this time.
0 commit comments