]> Cypherpunks repositories - gostls13.git/commitdiff
gc: do not try to constant-evaluate (interface{})("bar")
authorRuss Cox <rsc@golang.org>
Sat, 14 Nov 2009 22:14:27 +0000 (14:14 -0800)
committerRuss Cox <rsc@golang.org>
Sat, 14 Nov 2009 22:14:27 +0000 (14:14 -0800)
Fixes #183.

R=ken
https://golang.org/cl/154139

src/cmd/gc/const.c

index 582990419679b234bd66b9a27397a9aef91a610d..8cc4c247d63fae942ea0a4fbdbd20a7a52dbee8f 100644 (file)
@@ -335,6 +335,7 @@ evconst(Node *n)
        case OMAKESLICE:
        case OMAKECHAN:
        case ODCLCONST:
+       case OCONVIFACE:
                return;
        }