diff --git a/src/V3EmitCFunc.cpp b/src/V3EmitCFunc.cpp index da9fe15a1..3007b2da5 100644 --- a/src/V3EmitCFunc.cpp +++ b/src/V3EmitCFunc.cpp @@ -220,7 +220,7 @@ void EmitCFunc::displayEmit(AstNode* nodep, bool isScan) { if (func != "") { puts(func); } else if (argp) { - const bool addrof = isScan || (fmt == '@'); + const bool addrof = isScan || (fmt == '@') || (fmt == 'p'); if (addrof) puts("&("); iterateConst(argp); if (!addrof) emitDatap(argp);