diff --git a/modules/gapi/src/compiler/gislandmodel.cpp b/modules/gapi/src/compiler/gislandmodel.cpp index 75644fa25b..21dd02bee2 100644 --- a/modules/gapi/src/compiler/gislandmodel.cpp +++ b/modules/gapi/src/compiler/gislandmodel.cpp @@ -117,8 +117,7 @@ ade::NodeHandle GIsland::producer(const ade::Graph &g, } // Consistency: A GIsland requested for producer() of slot_nh should // always had the appropriate GModel node handle in its m_out_ops vector. - GAPI_Assert(false); - return ade::NodeHandle(); + GAPI_Assert(false && "Broken GIslandModel ?."); } std::string GIsland::name() const