From fe0392f789fd08b5e3e2105f68a43af560f4f4ca Mon Sep 17 00:00:00 2001 From: James Cherry Date: Wed, 2 Jun 2021 10:37:09 -0700 Subject: [PATCH] Exception merging with null -from --- sdc/Sdc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdc/Sdc.cc b/sdc/Sdc.cc index 5963ca0d..de021e7d 100644 --- a/sdc/Sdc.cc +++ b/sdc/Sdc.cc @@ -4366,7 +4366,7 @@ Sdc::addException1(ExceptionPath *exception) if (to && (to->hasPins() || to->hasInstances()) && to->hasClocks()) { - ExceptionFrom *from1 = exception->from()->clone(); + ExceptionFrom *from1 = exception->from() ? exception->from()->clone() : nullptr; ExceptionThruSeq *thrus1 = exceptionThrusClone(exception->thrus(), network_); PinSet *pins1 = to->pins() ? new PinSet(*to->pins()) : nullptr; InstanceSet *insts1 = to->instances() ? new InstanceSet(*to->instances()) : nullptr; @@ -4378,7 +4378,7 @@ Sdc::addException1(ExceptionPath *exception) exception1->asString(network_)); addException2(exception1); - ExceptionFrom *from2 = exception->from()->clone(); + ExceptionFrom *from2 = exception->from() ? exception->from()->clone() : nullptr; ExceptionThruSeq *thrus2 = exceptionThrusClone(exception->thrus(), network_); ClockSet *clks2 = new ClockSet(*to->clks()); ExceptionTo *to2 = new ExceptionTo(nullptr, clks2, nullptr, to->transition(),