Skip to content

Commit 6e984d0

Browse files
authored
Merge pull request #10158 from suhr25/fix/repair-hold-null-path
fix: null dereference before guard in repairEndHold
2 parents db90716 + 2dae83c commit 6e984d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rsz/src/RepairHold.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ void RepairHold::repairEndHold(sta::Vertex* end_vertex,
541541
const bool allow_setup_violations)
542542
{
543543
sta::Path* end_path = sta_->vertexWorstSlackPath(end_vertex, min_);
544-
sta::Mode* mode = end_path->mode(sta_);
545544
if (end_path) {
545+
sta::Mode* mode = end_path->mode(sta_);
546546
debugPrint(logger_,
547547
RSZ,
548548
"repair_hold",

0 commit comments

Comments
 (0)