diff options
Diffstat (limited to 'src/systemc/core/sc_main.cc')
-rw-r--r-- | src/systemc/core/sc_main.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/systemc/core/sc_main.cc b/src/systemc/core/sc_main.cc index e9df6a1e0..59ec9f8bd 100644 --- a/src/systemc/core/sc_main.cc +++ b/src/systemc/core/sc_main.cc @@ -81,8 +81,7 @@ class ScMainFiber : public Fiber resultStr = r.what(); } catch (...) { // There was some other type of exception we need to wrap. - const sc_report *r = ::sc_gem5::reportifyException(); - resultStr = r->what(); + resultStr = ::sc_gem5::reportifyException().what(); } ::sc_gem5::Kernel::scMainFinished(true); ::sc_gem5::scheduler.clear(); |