Changes in src/SymTab/FixFunction.cc [d53772d:4bda2cf]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/FixFunction.cc
rd53772d r4bda2cf 30 30 // can't delete function type because it may contain assertions, so transfer ownership to new object 31 31 ObjectDecl *pointer = new ObjectDecl( functionDecl->name, functionDecl->get_storageClasses(), functionDecl->linkage, nullptr, new PointerType( Type::Qualifiers(), functionDecl->type ), nullptr, functionDecl->attributes ); 32 pointer->location = functionDecl->location;33 32 functionDecl->attributes.clear(); 34 33 functionDecl->type = nullptr; … … 44 43 // need to recursively mutate the base type in order for multi-dimensional arrays to work. 45 44 PointerType *pointerType = new PointerType( arrayType->get_qualifiers(), arrayType->base, arrayType->dimension, arrayType->isVarLen, arrayType->isStatic ); 46 pointerType->location = arrayType->location;47 45 arrayType->base = nullptr; 48 46 arrayType->dimension = nullptr;
Note: See TracChangeset
for help on using the changeset viewer.