!6523 Fix static checking warnings

Merge pull request !6523 from BowenK/master
This commit is contained in:
mindspore-ci-bot 2020-09-19 18:21:06 +08:00 committed by Gitee
commit 85df184347
2 changed files with 1 additions and 2 deletions

View File

@ -259,7 +259,7 @@ class MatchResult {
MatchResult() {}
~MatchResult() = default;
void add_entry(PatternPtr pattern, AnfNodePtr node) { match_result_[pattern] = node; }
PatternNodeMap &result() { return match_result_; }
const PatternNodeMap &result() { return match_result_; }
AnfNodePtr get_node(const PatternPtr &pattern);
void merge(const MatchResultPtr &other_result);
void clear() { match_result_.clear(); }

View File

@ -21,7 +21,6 @@
#include <utility>
namespace mindspore {
// Base Class for scoped long running code.
// Enter() should release some global resoure, like Python GIL;
// Leave() should acquire the same global resource released.