forked from mindspore-Ecosystem/mindspore
!6523 Fix static checking warnings
Merge pull request !6523 from BowenK/master
This commit is contained in:
commit
85df184347
|
@ -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…
Reference in New Issue