hot fix for print
This commit is contained in:
parent
e789642e9a
commit
32e86f4166
|
@ -67,6 +67,10 @@ bool GetOptList(const std::vector<AnfNodePtr> &node_list, std::vector<AnfNodePtr
|
|||
continue;
|
||||
}
|
||||
auto value_node = current_node->cast<ValueNodePtr>()->value();
|
||||
// not a string
|
||||
if (value_node->type() == nullptr) {
|
||||
continue;
|
||||
}
|
||||
if (value_node->type()->generic_type_id() == kObjectTypeString) {
|
||||
auto current_string_value = GetValue<std::string>(value_node);
|
||||
string_pos.push_back(i);
|
||||
|
|
Loading…
Reference in New Issue