]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: fix filename output format verb for -s
authorShenghou Ma <minux@golang.org>
Wed, 31 Dec 2014 00:48:26 +0000 (19:48 -0500)
committerMinux Ma <minux@golang.org>
Wed, 31 Dec 2014 23:11:07 +0000 (23:11 +0000)
%lL will prepend the current directory to the filename, which is not
what we want here (as the file name is already absolute).

Fixes #9150.

Change-Id: I4c9386be6baf421393b92d9401a264b4692986d0
Reviewed-on: https://go-review.googlesource.com/2231
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/gc/typecheck.c

index 828ca34df5133a5859d0598eafe1efeafbdca1ae..bc4214e37d64c8134580e350fac16b62eb677547 100644 (file)
@@ -2537,7 +2537,7 @@ pushtype(Node *n, Type *t)
        else if(debug['s']) {
                typecheck(&n->right, Etype);
                if(n->right->type != T && eqtype(n->right->type, t))
-                       print("%lL: redundant type: %T\n", n->lineno, t);
+                       print("%L: redundant type: %T\n", n->lineno, t);
        }
 }