Changes in src/ResolvExpr/Resolver.cc [6668a3e:3b0bc16]
- File:
-
- 1 edited
-
src/ResolvExpr/Resolver.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r6668a3e r3b0bc16 1112 1112 } 1113 1113 1114 1114 1115 1115 } // anonymous namespace 1116 1116 /// Establish post-resolver invariants for expressions … … 1158 1158 1159 1159 namespace { 1160 1160 1161 1161 1162 1162 /// resolve `untyped` to the expression whose candidate satisfies `pred` with the … … 1905 1905 1906 1906 clause2.target.args.reserve( clause.target.args.size() ); 1907 const ast::StructDecl * decl_monitor = symtab.lookupStruct( "monitor$" );1908 1907 for ( auto arg : argsCandidates.front() ) { 1909 const auto & loc = stmt->location; 1910 1911 ast::Expr * init = new ast::CastExpr( loc, 1912 new ast::UntypedExpr( loc, 1913 new ast::NameExpr( loc, "get_monitor" ), 1914 { arg->expr } 1915 ), 1916 new ast::PointerType( 1917 new ast::StructInstType( 1918 decl_monitor 1919 ) 1920 ) 1921 ); 1922 1923 clause2.target.args.emplace_back( findSingleExpression( init, symtab ) ); 1908 clause2.target.args.emplace_back( std::move( arg->expr ) ); 1924 1909 } 1925 1910 … … 2092 2077 if (auto functionDecl = decl.as<ast::FunctionDecl>()) { 2093 2078 // xxx - can intrinsic gen ever fail? 2094 if (functionDecl->linkage == ast::Linkage::AutoGen) { 2079 if (functionDecl->linkage == ast::Linkage::AutoGen) { 2095 2080 auto mutDecl = mutate(functionDecl); 2096 2081 mutDecl->isDeleted = true;
Note:
See TracChangeset
for help on using the changeset viewer.