From 0aa91e0a666003b7b48d80cd65146ba3cf752310 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sun, 5 Jun 2011 05:04:23 +0000 Subject: When inferring the result type of a block based on a return statement with a type-dependent expression, infer the placeholder type 'Context.DependentTy' to indicate that this is just a placeholder. Fixes PR9982 / . llvm-svn: 132657 --- clang/lib/CodeGen/CodeGenModule.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index de11a29..bea70ea 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -2082,6 +2082,7 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) { case Decl::FunctionTemplate: case Decl::TypeAliasTemplate: case Decl::NamespaceAlias: + case Decl::Block: break; case Decl::CXXConstructor: // Skip function templates -- cgit v1.1