Skip to content

Commit

Permalink
Update src/libasr/pass/pass_utils.h
Browse files Browse the repository at this point in the history
Co-authored-by: Thirumalai Shaktivel <[email protected]>
  • Loading branch information
tanay-man and Thirumalai-Shaktivel authored Aug 14, 2024
1 parent 459a75c commit 316166e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libasr/pass/pass_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ namespace LCompilers {
bool perform_cast=false,
ASR::cast_kindType cast_kind=ASR::cast_kindType::IntegerToInteger,
ASR::ttype_t* casted_type=nullptr) {
if ( x->m_dt_sym && ASR::is_a<ASR::Struct_t>(*(x->m_dt_sym)) ) {
if ( ASR::is_a<ASR::Struct_t>(*(x->m_dt_sym)) ) {
ASR::Struct_t* st = ASR::down_cast<ASR::Struct_t>(x->m_dt_sym);
if ( st->n_member_functions > 0 ) {
remove_original_statement = true;
Expand Down

0 comments on commit 316166e

Please sign in to comment.