Skip to content

Commit

Permalink
Get past external
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Jul 10, 2023
1 parent b35f614 commit ade9e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lpython/semantics/python_ast_to_asr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2735,7 +2735,7 @@ class CommonVisitor : public AST::BaseVisitor<Struct> {
throw SemanticAbort();
}
if (ASR::is_a<ASR::Struct_t>(*asr_alloc_type)) {
ASR::symbol_t *sym = ASR::down_cast<ASR::Struct_t>(asr_alloc_type)->m_derived_type;
ASR::symbol_t *sym = ASRUtils::symbol_get_past_external(ASR::down_cast<ASR::Struct_t>(asr_alloc_type)->m_derived_type);
if (ASR::is_a<ASR::StructType_t>(*sym)) {
ASR::StructType_t *st = ASR::down_cast<ASR::StructType_t>(sym);
if (st->m_abi != ASR::abiType::BindC) {
Expand Down

0 comments on commit ade9e79

Please sign in to comment.