]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: re-enable IfacePointerOnly
authorRuss Cox <rsc@golang.org>
Mon, 25 Aug 2014 00:31:45 +0000 (20:31 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 25 Aug 2014 00:31:45 +0000 (20:31 -0400)
CL 130240043 did this but broke ARM, because
it made newErrorCString start allocating, so we rolled
it back in CL 133810043.

CL 133820043 removed that allocation.

Try again.

Fixes #8405.

LGTM=bradfitz, dave
R=golang-codereviews, bradfitz
CC=dave, golang-codereviews, r
https://golang.org/cl/133830043

src/cmd/gc/subr.c

index 325614e6bcf20f30c7e5d816b2601f65b390f033..081c373a889cc4f85d903350ed9305f8746b08d2 100644 (file)
@@ -3808,7 +3808,7 @@ isdirectiface(Type *t)
        // where the data word can hold a pointer or any
        // non-pointer value no bigger than a pointer.
        enum {
-               IfacePointerOnly = 0,
+               IfacePointerOnly = 1,
        };
 
        if(IfacePointerOnly) {