src/ResolvExpr/Resolver.cc
bool Resolver_new::on_error(ast::ptr<ast::Decl> & decl) {
		if (auto functionDecl = decl.as<ast::FunctionDecl>()) {
			// xxx - can intrinsic gen ever fail?
			if (functionDecl->linkage == ast::Linkage::AutoGen) { 
				auto mutDecl = mutate(functionDecl);
				mutDecl->isDeleted = true;
				mutDecl->stmts = nullptr;
				decl = mutDecl;
				return false;
			}
		}
		return true;
	}
// suppress error on autogen functions and mark invalid autogen as deleted.
suppress error on autogen functions and mark invalid autogen as deleted.
suppress error on autogen functions and mark invalid autogen as deleted .
bool Resolver_new::on_error(ast::ptr<ast::Decl> & decl) {
		if (auto functionDecl = decl.as<ast::FunctionDecl>()) {
			if (functionDecl->linkage == ast::Linkage::AutoGen) { 
				auto mutDecl = mutate(functionDecl);
				mutDecl->isDeleted = true;
				mutDecl->stmts = nullptr;
				decl = mutDecl;
				return false;
			}
		}
		return true;
	}
bool Resolver_new :: on_error ( ast :: ptr < ast :: Decl > & decl ) { if ( auto functionDecl = decl . as < ast :: FunctionDecl > ( ) ) { if ( functionDecl -> linkage == ast :: Linkage :: AutoGen ) { auto mutDecl = mutate ( functionDecl ) ; mutDecl -> isDeleted = true ; mutDecl -> stmts = nullptr ; decl = mutDecl ; return false ; } } return true ; }
suppress error on autogen functions and mark invalid autogen as deleted.
suppress error on autogen functions and mark invalid autogen as deleted .
// xxx - can intrinsic gen ever fail?