Skip to content

Commit 5f92c3a

Browse files
committed
syn: fix stale assert
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
1 parent edcc2e8 commit 5f92c3a

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)