diff --git a/dmd2/statement.c b/dmd2/statement.c index 89d6194e..d48a0bab 100644 --- a/dmd2/statement.c +++ b/dmd2/statement.c @@ -5443,7 +5443,7 @@ int AsmStatement::comeFrom() int AsmStatement::blockExit(bool mustNotThrow) { if (mustNotThrow) - error("asm statements are assumed to throw", toChars()); + error("asm statements are assumed to throw"); // Assume the worst return BEfallthru | BEthrow | BEreturn | BEgoto | BEhalt; } diff --git a/gen/asm-x86-32.h b/gen/asm-x86-32.h index 7ae8ccba..127e6704 100644 --- a/gen/asm-x86-32.h +++ b/gen/asm-x86-32.h @@ -2189,7 +2189,7 @@ namespace AsmParserx8632 */ if ( isDollar ( e ) ) { - error ( "dollar labels are not supported", stmt->loc.toChars() ); + stmt->error("dollar labels are not supported"); asmcode->dollarLabel = 1; } else if ( e->op == TOKdsymbol ) diff --git a/gen/asm-x86-64.h b/gen/asm-x86-64.h index 044cba81..f0a5f9a1 100644 --- a/gen/asm-x86-64.h +++ b/gen/asm-x86-64.h @@ -2325,7 +2325,7 @@ namespace AsmParserx8664 */ if ( isDollar ( e ) ) { - error ( "dollar labels are not supported", stmt->loc.toChars() ); + stmt->error("dollar labels are not supported"); asmcode->dollarLabel = 1; } else if ( e->op == TOKdsymbol ) diff --git a/gen/asmstmt.cpp b/gen/asmstmt.cpp index be7da84e..5ae2656c 100644 --- a/gen/asmstmt.cpp +++ b/gen/asmstmt.cpp @@ -187,7 +187,7 @@ int AsmStatement::blockExit(bool mustNotThrow) //printf("AsmStatement::blockExit(%p)\n", this); #if DMDV2 if (mustNotThrow) - error("asm statements are assumed to throw", toChars()); + error("asm statements are assumed to throw"); #endif // Assume the worst return BEfallthru | BEthrow | BEreturn | BEgoto | BEhalt;