Changeset 0b465a5


Ignore:
Timestamp:
Mar 13, 2017, 3:10:29 PM (5 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
235114f
Parents:
ebb5ed9
Message:

fix construction of qualified objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/GenInit.cc

    rebb5ed9 r0b465a5  
    218218
    219219        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();
    220223                if ( TupleType * tupleType = dynamic_cast< TupleType * > ( type ) ) {
    221224                        // tuple is also managed if any of its components are managed
Note: See TracChangeset for help on using the changeset viewer.