diff options
Diffstat (limited to 'gcc/d/dmd/nogc.d')
-rw-r--r-- | gcc/d/dmd/nogc.d | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/d/dmd/nogc.d b/gcc/d/dmd/nogc.d index 01a6832..5606061 100644 --- a/gcc/d/dmd/nogc.d +++ b/gcc/d/dmd/nogc.d @@ -86,7 +86,7 @@ public: } if (f.setGC(e.loc, format)) { - e.error(format, f.kind(), f.toPrettyChars()); + error(e.loc, format, f.kind(), f.toPrettyChars()); err = true; return true; } @@ -225,7 +225,7 @@ Expression checkGC(Scope* sc, Expression e) if (e && e.op != EXP.error && f && sc.intypeof != 1 && (!(sc.flags & SCOPE.ctfe) || betterC) && (f.type.ty == Tfunction && - (cast(TypeFunction)f.type).isnogc || f.nogcInprocess || global.params.vgc) && + (cast(TypeFunction)f.type).isnogc || f.nogcInprocess || global.params.v.gc) && !(sc.flags & SCOPE.debug_)) { scope NOGCVisitor gcv = new NOGCVisitor(f); |