]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/noder/unified.go
cmd/compile: redo IsRuntimePkg/IsReflectPkg predicate
[gostls13.git] / src / cmd / compile / internal / noder / unified.go
index 58d4e029373ae68e86e12524e7221e368b1c5965..e534f0b72569e5ad6b0f58a9de51ce3dda5dd0f7 100644 (file)
@@ -109,7 +109,7 @@ func unified(m posMap, noders []*noder) {
        // For functions originally came from package runtime,
        // mark as norace to prevent instrumenting, see issue #60439.
        for _, fn := range target.Funcs {
-               if !base.Flag.CompilingRuntime && types.IsRuntimePkg(fn.Sym().Pkg) {
+               if !base.Flag.CompilingRuntime && types.RuntimeSymName(fn.Sym()) != "" {
                        fn.Pragma |= ir.Norace
                }
        }