Ignore:
Timestamp:
Sep 19, 2022, 3:53:05 PM (21 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation
Children:
1c7ed2d
Parents:
aa144c5
Message:

Hack in code gen to make 0p a constant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    raa144c5 r9d55ff6  
    493493                                        assert( false );
    494494                                } // switch
     495                        } else if( varExpr->get_var()->get_linkage() == LinkageSpec::BuiltinCFA && varExpr->get_var()->get_name() == "intptr" ) {
     496                                // THIS is a hack to make it a constant until a proper constexpr solution is created
     497                                output << "((void*)";
     498                                std::list< Expression* >::iterator arg = applicationExpr->get_args().begin();
     499                                (*arg++)->accept( *visitor );
     500                                output << ")";
    495501                        } else {
    496502                                varExpr->accept( *visitor );
Note: See TracChangeset for help on using the changeset viewer.