We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36c6ff7 commit 8f807ccCopy full SHA for 8f807cc
src/libasr/asr_utils.h
@@ -612,6 +612,9 @@ static inline ASR::symbol_t *get_asr_owner(const ASR::expr_t *expr) {
612
case ASR::exprType::GetPointer: {
613
return ASRUtils::get_asr_owner(ASR::down_cast<ASR::GetPointer_t>(expr)->m_arg);
614
}
615
+ case ASR::exprType::FunctionCall: {
616
+ return ASRUtils::get_asr_owner(ASR::down_cast<ASR::FunctionCall_t>(expr)->m_name);
617
+ }
618
default: {
619
throw LCompilersException("Cannot find the ASR owner of underlying symbol of expression "
620
+ std::to_string(expr->type));
0 commit comments