summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-06-05 05:04:23 +0000
committerDouglas Gregor <dgregor@apple.com>2011-06-05 05:04:23 +0000
commit0aa91e0a666003b7b48d80cd65146ba3cf752310 (patch)
tree0366615115e25740897ea157d50dbfd57208fbd9 /clang/lib/CodeGen/CodeGenModule.cpp
parent1134ab23dfa6a565888314f2ea52b33d3680bda0 (diff)
downloadbcm5719-llvm-0aa91e0a666003b7b48d80cd65146ba3cf752310.tar.gz
bcm5719-llvm-0aa91e0a666003b7b48d80cd65146ba3cf752310.zip
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 / <rdar://problem/9486685>. llvm-svn: 132657
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index de11a29f67b..bea70ea38f3 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
OpenPOWER on IntegriCloud