Changeset 5af7306 for src/SymTab
- Timestamp:
- Apr 23, 2018, 4:46:43 PM (6 years ago)
- Branches:
- new-env, with_gc
- Children:
- 2efe4b8
- Parents:
- fb97252f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
rfb97252f r5af7306 48 48 #include "CodeGen/CodeGenerator.h" // for genName 49 49 #include "CodeGen/OperatorTable.h" // for isCtorDtor, isCtorDtorAssign 50 #include "Common/GC.h" // for new_static_root, register_static_root 50 51 #include "Common/PassVisitor.h" // for PassVisitor, WithDeclsToAdd 51 52 #include "Common/ScopedMap.h" // for ScopedMap … … 673 674 // grab and remember declaration of size_t 674 675 SizeType = eliminator.pass.typedefNames["size_t"].first->get_base()->clone(); 676 GC::get().register_static_root( SizeType ); 675 677 } else { 676 678 // xxx - missing global typedef for size_t - default to long unsigned int, even though that may be wrong 677 679 // eventually should have a warning for this case. 678 SizeType = new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ); 680 SizeType = 681 new_static_root<BasicType>( Type::Qualifiers(), BasicType::LongUnsignedInt ); 679 682 } 680 683 filter( translationUnit, isTypedef );
Note: See TracChangeset
for help on using the changeset viewer.