Ignore:
Timestamp:
Jun 3, 2019, 10:54:01 AM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
0e315a5, dafe9e1
Parents:
043a5b6 (diff), 8d70648 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.cc

    r043a5b6 ra935892  
    756756        }
    757757
     758        bool isCopyFunction( const ast::FunctionDecl * decl ) {
     759                const ast::FunctionType * ftype = decl->type;
     760                if ( ftype->params.size() != 2 ) return false;
     761
     762                const ast::Type * t1 = getPointerBase( ftype->params.front()->get_type() );
     763                if ( ! t1 ) return false;
     764                const ast::Type * t2 = ftype->params.back()->get_type();
     765               
     766                return ResolvExpr::typesCompatibleIgnoreQualifiers( t1, t2, ast::SymbolTable{} );
     767        }
     768
    758769        FunctionDecl * isAssignment( Declaration * decl ) {
    759770                return isCopyFunction( decl, "?=?" );
Note: See TracChangeset for help on using the changeset viewer.