Skip to content

Commit

Permalink
fix issue 740.
Browse files Browse the repository at this point in the history
  • Loading branch information
redbopo committed Jul 9, 2022
1 parent 0e39d6c commit e4d4340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libasr/asr_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static inline ASR::ttype_t* TYPE(const ASR::asr_t *f)

static inline ASR::symbol_t *symbol_get_past_external(ASR::symbol_t *f)
{
if (f->type == ASR::symbolType::ExternalSymbol) {
if (f && f->type == ASR::symbolType::ExternalSymbol) {
ASR::ExternalSymbol_t *e = ASR::down_cast<ASR::ExternalSymbol_t>(f);
LFORTRAN_ASSERT(!ASR::is_a<ASR::ExternalSymbol_t>(*e->m_external));
return e->m_external;
Expand Down

0 comments on commit e4d4340

Please sign in to comment.