Changes in src/ResolvExpr/Unify.cc [2908f08:c75b30a]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Unify.cc
r2908f08 rc75b30a 73 73 ast::Type * newFirst = shallowCopy( first ); 74 74 ast::Type * newSecond = shallowCopy( second ); 75 if ( auto temp = dynamic_cast<const ast::EnumInstType *>(first) ) {76 if ( !dynamic_cast< const ast::EnumInstType * >( second ) ) {77 const ast::EnumDecl * baseEnum = dynamic_cast<const ast::EnumDecl *>(temp->base.get());78 if ( auto t = baseEnum->base.get() ) {79 newFirst = ast::shallowCopy( t );80 }81 }82 } else if ( auto temp = dynamic_cast<const ast::EnumInstType *>(second) ) {83 const ast::EnumDecl * baseEnum = dynamic_cast<const ast::EnumDecl *>(temp->base.get());84 if ( auto t = baseEnum->base.get() ) {85 newSecond = ast::shallowCopy( t );86 }87 }88 75 89 76 newFirst ->qualifiers = {};
Note: See TracChangeset
for help on using the changeset viewer.