From 6a576ab708d3aa7d40e5d867ab1de5d3cb507553 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 / . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132657 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/CodeGen/CodeGenModule.cpp') diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index de11a29f67..bea70ea38f 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/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.2.3-70-g09d2