Changes in src/InitTweak/InitTweak.cc [3cc1111:02f4eb8]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/InitTweak/InitTweak.cc ¶
r3cc1111 r02f4eb8 9 9 // Author : Rob Schluntz 10 10 // Created On : Fri May 13 11:26:36 2016 11 // Last Modified By : Andrew Beach12 // Last Modified On : Fri Nov 19 19:22:00202113 // Update Count : 1 911 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jun 16 20:57:22 2021 13 // Update Count : 18 14 14 // 15 15 … … 540 540 } 541 541 542 const ast::Type * getTypeofThis( const ast::FunctionType * ftype ) {543 assertf( ftype, "getTypeofThis: nullptr ftype" );544 const std::vector<ast::ptr<ast::Type>> & params = ftype->params;545 assertf( !params.empty(), "getTypeofThis: ftype with 0 parameters: %s",546 toString( ftype ).c_str() );547 const ast::ReferenceType * refType =548 params.front().strict_as<ast::ReferenceType>();549 return refType->base;550 }551 552 542 ObjectDecl * getParamThis( FunctionType * ftype ) { 553 543 assertf( ftype, "getParamThis: nullptr ftype" );
Note: See TracChangeset
for help on using the changeset viewer.