diff options
Diffstat (limited to 'src/ir/function-utils.h')
-rw-r--r-- | src/ir/function-utils.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ir/function-utils.h b/src/ir/function-utils.h index 317b2f1b1..3895b33bf 100644 --- a/src/ir/function-utils.h +++ b/src/ir/function-utils.h @@ -35,7 +35,10 @@ inline bool equal(Function* left, Function* right) { } if (left->result != right->result) return false; if (left->type != right->type) return false; - return ExpressionAnalyzer::equal(left->body, right->body); + if (!left->imported() && !right->imported()) { + return ExpressionAnalyzer::equal(left->body, right->body); + } + return left->imported() && right->imported(); } } // namespace FunctionUtils |