Ignore:
Timestamp:
Jan 21, 2016, 1:16:44 PM (9 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
bfebb6c5
Parents:
25a054f
Message:

Fix code generation for offsetofexpr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    r25a054f re551c69  
    458458                output << "__builtin_offsetof(";
    459459                output << genType( offsetofExpr->get_type(), "" );
    460                 output << ", ";
    461                 offsetofExpr->get_member()->accept( *this );
     460                output << ", " << mangleName( offsetofExpr->get_member() );
    462461                output << ")";
    463462        }
Note: See TracChangeset for help on using the changeset viewer.