Changes in src/InitTweak/GenInit.cc [08d5507b:0b465a5]
- File:
-
- 1 edited
-
src/InitTweak/GenInit.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/GenInit.cc
r08d5507b r0b465a5 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Mar 13 23:59:09201713 // Update Count : 1 8012 // Last Modified On : Tue Mar 7 07:51:38 2017 13 // Update Count : 179 14 14 // 15 15 … … 186 186 // C doesn't allow variable sized arrays at global scope or for static variables, so don't hoist dimension. 187 187 if ( ! inFunction ) return; 188 if ( storageClasses .is_static) return;188 if ( storageClasses[ DeclarationNode::StaticClass] ) return; 189 189 190 190 if ( ArrayType * arrayType = dynamic_cast< ArrayType * >( type ) ) { … … 218 218 219 219 bool CtorDtor::isManaged( Type * type ) const { 220 // need to clear and reset qualifiers when determining if a type is managed 221 ValueGuard< Type::Qualifiers > qualifiers( type->get_qualifiers() ); 222 type->get_qualifiers() = Type::Qualifiers(); 220 223 if ( TupleType * tupleType = dynamic_cast< TupleType * > ( type ) ) { 221 224 // tuple is also managed if any of its components are managed
Note:
See TracChangeset
for help on using the changeset viewer.