Changes in src/CodeGen/CodeGenerator.cc [5408b59:25b0fde]
- File:
-
- 1 edited
-
src/CodeGen/CodeGenerator.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
r5408b59 r25b0fde 290 290 if ( obj->get_init() ) { 291 291 obj->get_init()->accept( *visitor ); 292 last_val = ((ConstantExpr *)(((SingleInit *)(obj->init))->value))->constant.get_ival(); 292 Expression* expr = ((SingleInit *)(obj->init))->value; 293 while ( auto temp = dynamic_cast<CastExpr *>(expr) ) { 294 expr = temp->arg; 295 } 296 last_val = ((ConstantExpr *)expr)->constant.get_ival(); 293 297 } else { 294 298 output << ++last_val;
Note:
See TracChangeset
for help on using the changeset viewer.