fix static checking warnings

pull/6523/head
BowenK 4 years ago
parent 1cfad93704
commit ed40ba05de

@ -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(); }

@ -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.

Loading…
Cancel
Save