diff --git a/compiler/graph/passes/format_optimize/transop_without_reshape_fusion_pass.cc b/compiler/graph/passes/format_optimize/transop_without_reshape_fusion_pass.cc
index 8c6745ead..eb40c3052 100644
--- /opt/cloud/slavespace/usr1/096471637100f3de0fcfc01072822a80/ut/compiler/graph/passes/format_optimize/transop_without_reshape_fusion_pass.cc
+++ /opt/cloud/slavespace/usr1/096471637100f3de0fcfc01072822a80/ut/compiler/graph/passes/format_optimize/transop_without_reshape_fusion_pass.cc
@@ -1220,7 +1220,7 @@
   return RelinkControlEdge(index, out_anchor, new_trans_nodes);
 }
 
-bool TransOpWithoutReshapeFusionPass::CheckIfHasSameOutControlEdge(const NodePtr node, const NodePtr out_node) {
+bool TransOpWithoutReshapeFusionPass::CheckIfHasSameOutControlEdge(const NodePtr node, const NodePtr out_node) const {
   auto out_anchor = node->GetOutControlAnchor();
   for (auto peer_in_anchor : out_anchor->GetPeerInControlAnchors()) {
     if (peer_in_anchor->GetOwnerNode() == out_node) {

