From 72b4a742453422ef79a26b169e8e9ebb69e32eb2 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 26 Sep 2023 19:58:09 -0400 Subject: [PATCH] Fix clang error on last commit --- src/V3EmitCModel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/V3EmitCModel.cpp b/src/V3EmitCModel.cpp index 9c694d37c..2ceeafbde 100644 --- a/src/V3EmitCModel.cpp +++ b/src/V3EmitCModel.cpp @@ -642,10 +642,11 @@ class EmitCModel final : public EmitCFunc { emitDestructorImplementation(); emitStandardMethods1(modp); emitStandardMethods2(modp); - if (v3Global.opt.trace()) + if (v3Global.opt.trace()) { emitTraceMethods(modp); - else + } else if (!v3Global.opt.systemC()) { emitTraceOffMethods(modp); + } if (v3Global.opt.savable()) emitSerializationFunctions(); VL_DO_CLEAR(delete m_ofp, m_ofp = nullptr);