Skip to content

Commit 8f807cc

Browse files
committed
ASRUtils: Implement case FunctionCall in get_asr_owner()
1 parent 36c6ff7 commit 8f807cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libasr/asr_utils.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,9 @@ static inline ASR::symbol_t *get_asr_owner(const ASR::expr_t *expr) {
612612
case ASR::exprType::GetPointer: {
613613
return ASRUtils::get_asr_owner(ASR::down_cast<ASR::GetPointer_t>(expr)->m_arg);
614614
}
615+
case ASR::exprType::FunctionCall: {
616+
return ASRUtils::get_asr_owner(ASR::down_cast<ASR::FunctionCall_t>(expr)->m_name);
617+
}
615618
default: {
616619
throw LCompilersException("Cannot find the ASR owner of underlying symbol of expression "
617620
+ std::to_string(expr->type));

0 commit comments

Comments
 (0)