diff --git a/src/core/src/pattern/op/or.cpp b/src/core/src/pattern/op/or.cpp index e2c37a322f3a5c..f0aa96120cc2be 100644 --- a/src/core/src/pattern/op/or.cpp +++ b/src/core/src/pattern/op/or.cpp @@ -13,7 +13,7 @@ bool ov::pass::pattern::op::Or::match_value(Matcher* matcher, auto saved = matcher->start_match(); if (matcher->match_value(input_value, graph_value)) { auto& pattern_map = matcher->get_pattern_value_map(); - pattern_map[input_value.get_node_shared_ptr()] = graph_value; + pattern_map[shared_from_this()] = graph_value; return saved.finish(true); } }