Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Convert.cpp

    r0b57626 r489bacf  
    11301130        const ast::Type * visit( const ast::FunctionType * node ) override final {
    11311131                auto ty = new FunctionType {
    1132                         cv( node ),
     1132                        cv( node ), 
    11331133                        (bool)node->isVarArgs
    11341134                };
     
    13381338                // TypeSubstitution is not a node in the old model, so the conversion result wouldn't fit in this->node.
    13391339                assert( 0 );
    1340                 (void)node;
    13411340                return nullptr;
    13421341        }
     
    14101409#       define GET_LABELS_V(labels) \
    14111410                to<std::vector>::from( make_labels( std::move( labels ) ) )
    1412 
     1411       
    14131412        static ast::CV::Qualifiers cv( Type * ty ) { return { ty->get_qualifiers().val }; }
    14141413
     
    15501549
    15511550        virtual void visit( TypeDecl * old ) override final {
    1552                 if ( inCache( old ) ) return;
     1551                if ( inCache( old ) ) return;   
    15531552                auto decl = new ast::TypeDecl{
    15541553                        old->location,
     
    15881587        virtual void visit( AsmDecl * old ) override final {
    15891588                auto decl = new ast::AsmDecl{
    1590                         old->location,
     1589                        old->location, 
    15911590                        GET_ACCEPT_1(stmt, AsmStmt)
    15921591                };
     
    21432142                        rslt = new ast::ConstantExpr(
    21442143                                old->location,
    2145                                 GET_ACCEPT_1(result, Type),
    2146                                 old->constant.get_value(),
     2144                                GET_ACCEPT_1(result, Type), 
     2145                                old->constant.get_value(), 
    21472146                                (double) old->constant.get_dval()
    21482147                        );
     
    21642163                        assert(!old->isType);
    21652164                        rslt = new ast::SizeofExpr(
    2166                                 old->location,
     2165                                old->location, 
    21672166                                GET_ACCEPT_1(expr, Expr)
    21682167                        );
     
    21712170                        assert(old->isType);
    21722171                        rslt = new ast::SizeofExpr(
    2173                                 old->location,
     2172                                old->location, 
    21742173                                GET_ACCEPT_1(type, Type)
    21752174                        );
     
    21852184                        assert(!old->isType);
    21862185                        rslt = new ast::AlignofExpr(
    2187                                 old->location,
     2186                                old->location, 
    21882187                                GET_ACCEPT_1(expr, Expr)
    21892188                        );
     
    21922191                        assert(old->isType);
    21932192                        rslt = new ast::AlignofExpr(
    2194                                 old->location,
     2193                                old->location, 
    21952194                                GET_ACCEPT_1(type, Type)
    21962195                        );
     
    22362235                                GET_ACCEPT_1(arg1, Expr),
    22372236                                GET_ACCEPT_1(arg2, Expr),
    2238                                 old->get_isAnd() ?
     2237                                old->get_isAnd() ? 
    22392238                                        ast::LogicalFlag::AndExpr :
    22402239                                        ast::LogicalFlag::OrExpr
Note: See TracChangeset for help on using the changeset viewer.