Changeset 3322180 for src/Validate
- Timestamp:
- Jun 24, 2022, 12:12:26 PM (22 months ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- 5a076837
- Parents:
- d28524a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/Autogen.cpp
rd28524a r3322180 183 183 { 184 184 // TODO: These functions are somewhere between instrinsic and autogen, 185 // could possibly use a new linkage type. For now we just make them 186 // intrinsic to code-gen them as C assignments. 187 proto_linkage = ast::Linkage::Intrinsic; 185 // could possibly use a new linkage type. For now we just make the 186 // basic ones intrinsic to code-gen them as C assignments. 187 const auto & real_type = decl->base; 188 const auto & basic = real_type.as<ast::BasicType>(); 189 if(!real_type || (basic && basic->isInteger())) proto_linkage = ast::Linkage::Intrinsic; 188 190 } 189 191 … … 402 404 auto retval = srcParam(); 403 405 retval->name = "_ret"; 404 // xxx - Adding this unused attribute can slience unused variable warning405 // However, some code might not be compiled as expected406 // Temporarily disabled407 // retval->attributes.push_back(new ast::Attribute("unused"));408 406 return genProto( "?=?", { dstParam(), srcParam() }, { retval } ); 409 407 }
Note: See TracChangeset
for help on using the changeset viewer.