diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-12 21:53:14 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-12 21:53:14 +0000 |
commit | 9a66c303c7024967a48877106384bf315c84e80e (patch) | |
tree | 7a7c617e2528e541332be0a6ae6ab18f4147918a /lib/Sema/SemaDecl.cpp | |
parent | f4aed5f8a30e39e169dcdef1c315f0f7a5699738 (diff) |
Complain if block-literal expression's parameter name is
missing (in c/objc mode). Fixes radar 7528255.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96017 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index feb9f8511c..1fc08ce031 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -3875,6 +3875,7 @@ Sema::ActOnParamDeclarator(Scope *S, Declarator &D) { // Recover by removing the name II = 0; D.SetIdentifier(0, D.getIdentifierLoc()); + D.setInvalidType(true); } } } |