Changes in src/AST/Convert.cpp [0b57626:489bacf]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
r0b57626 r489bacf 1130 1130 const ast::Type * visit( const ast::FunctionType * node ) override final { 1131 1131 auto ty = new FunctionType { 1132 cv( node ), 1132 cv( node ), 1133 1133 (bool)node->isVarArgs 1134 1134 }; … … 1338 1338 // TypeSubstitution is not a node in the old model, so the conversion result wouldn't fit in this->node. 1339 1339 assert( 0 ); 1340 (void)node;1341 1340 return nullptr; 1342 1341 } … … 1410 1409 # define GET_LABELS_V(labels) \ 1411 1410 to<std::vector>::from( make_labels( std::move( labels ) ) ) 1412 1411 1413 1412 static ast::CV::Qualifiers cv( Type * ty ) { return { ty->get_qualifiers().val }; } 1414 1413 … … 1550 1549 1551 1550 virtual void visit( TypeDecl * old ) override final { 1552 if ( inCache( old ) ) return; 1551 if ( inCache( old ) ) return; 1553 1552 auto decl = new ast::TypeDecl{ 1554 1553 old->location, … … 1588 1587 virtual void visit( AsmDecl * old ) override final { 1589 1588 auto decl = new ast::AsmDecl{ 1590 old->location, 1589 old->location, 1591 1590 GET_ACCEPT_1(stmt, AsmStmt) 1592 1591 }; … … 2143 2142 rslt = new ast::ConstantExpr( 2144 2143 old->location, 2145 GET_ACCEPT_1(result, Type), 2146 old->constant.get_value(), 2144 GET_ACCEPT_1(result, Type), 2145 old->constant.get_value(), 2147 2146 (double) old->constant.get_dval() 2148 2147 ); … … 2164 2163 assert(!old->isType); 2165 2164 rslt = new ast::SizeofExpr( 2166 old->location, 2165 old->location, 2167 2166 GET_ACCEPT_1(expr, Expr) 2168 2167 ); … … 2171 2170 assert(old->isType); 2172 2171 rslt = new ast::SizeofExpr( 2173 old->location, 2172 old->location, 2174 2173 GET_ACCEPT_1(type, Type) 2175 2174 ); … … 2185 2184 assert(!old->isType); 2186 2185 rslt = new ast::AlignofExpr( 2187 old->location, 2186 old->location, 2188 2187 GET_ACCEPT_1(expr, Expr) 2189 2188 ); … … 2192 2191 assert(old->isType); 2193 2192 rslt = new ast::AlignofExpr( 2194 old->location, 2193 old->location, 2195 2194 GET_ACCEPT_1(type, Type) 2196 2195 ); … … 2236 2235 GET_ACCEPT_1(arg1, Expr), 2237 2236 GET_ACCEPT_1(arg2, Expr), 2238 old->get_isAnd() ? 2237 old->get_isAnd() ? 2239 2238 ast::LogicalFlag::AndExpr : 2240 2239 ast::LogicalFlag::OrExpr
Note:
See TracChangeset
for help on using the changeset viewer.