!22417 Fix a call argument trace dead loop problem

Merge pull request !22417 from hewei/core_user_api
This commit is contained in:
i-robot 2021-08-26 11:27:51 +00:00 committed by Gitee
commit 95d53bc24a
1 changed files with 6 additions and 1 deletions

View File

@ -801,7 +801,12 @@ class SideEffectFinder {
auto cnode = dyn_cast<CNode>(user.first->first);
MS_EXCEPTION_IF_NULL(cnode);
if (cnode && input_index < cnode->size()) {
handler(cnode->input(input_index));
auto &real_arg = cnode->input(input_index);
if (real_arg == para) {
// Skip if the real argument is the given parameter.
continue;
}
handler(real_arg);
}
}
}