Changeset aeef2bd
- Timestamp:
- Oct 23, 2017, 5:32:48 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 954ef5b
- Parents:
- 99b7d4fc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/ResolvExpr/Unify.cc ¶
r99b7d4fc raeef2bd 17 17 #include <iterator> // for back_insert_iterator, back_inserter 18 18 #include <map> // for _Rb_tree_const_iterator, _Rb_tree_i... 19 #include <memory> // for unique_ptr , auto_ptr19 #include <memory> // for unique_ptr 20 20 #include <set> // for set 21 21 #include <string> // for string, operator==, operator!=, bas... … … 170 170 Type *common = 0; 171 171 // attempt to unify equivalence class type (which has qualifiers stripped, so they must be restored) with the type to bind to 172 std:: auto_ptr< Type > newType( curClass.type->clone() );172 std::unique_ptr< Type > newType( curClass.type->clone() ); 173 173 newType->get_qualifiers() = typeInst->get_qualifiers(); 174 174 if ( unifyInexact( newType.get(), other, env, needAssertions, haveAssertions, openVars, widenMode & WidenMode( curClass.allowWidening, true ), indexer, common ) ) { … … 459 459 if ( otherArray && arrayType->get_isVarLen() == otherArray->get_isVarLen() ) { 460 460 461 // not positive this is correct in all cases, but it's needed for typedefs462 if ( arrayType->get_isVarLen() || otherArray->get_isVarLen() ) {463 return;464 }465 466 461 if ( ! arrayType->get_isVarLen() && ! otherArray->get_isVarLen() && 467 462 arrayType->get_dimension() != 0 && otherArray->get_dimension() != 0 ) {
Note: See TracChangeset
for help on using the changeset viewer.