Skip to content

Commit 978be9b

Browse files
authored
Merge pull request #10493 from The-OpenROAD-Project-staging/syn-fix-assert
syn: fix stale assert
2 parents edcc2e8 + 5f92c3a commit 978be9b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/syn/src/elab/backend_builder.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ class BackendGraphBuilder : public BackendGraphBuilderBase
4949
// is no longer called.
5050
syn::Graph& graph()
5151
{
52-
assert(graph_.has_value());
53-
// NOLINTNEXTLINE(bugprone-unchecked-optional-access)
52+
assert(graph_);
5453
return *graph_;
5554
}
5655

0 commit comments

Comments
 (0)