diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-28 17:52:37 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-28 17:52:37 +0000 |
commit | 32844b35f61e04b23618e19c5ea41d57b975f9ac (patch) | |
tree | d3e3e95828b4c471d43c66771d7fbc7e4cf0dbdb /lib/Sema/SemaDeclObjC.cpp | |
parent | d1102433214bd33b5bef5b493944292a1e82c2fb (diff) |
patch to prevent crash in hopelessly incorrect
method definition with labels.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80381 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 367f235cbe..988680a981 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -1664,6 +1664,7 @@ Sema::DeclPtrTy Sema::ActOnMethodDeclaration( // Make sure we can establish a context for the method. if (!ClassDecl) { Diag(MethodLoc, diag::error_missing_method_context); + FunctionLabelMap.clear(); return DeclPtrTy(); } QualType resultDeclType; |