[cfe-commits] r80381 - /cfe/trunk/lib/Sema/SemaDeclObjC.cpp
Fariborz Jahanian
fjahanian at apple.com
Fri Aug 28 10:52:37 PDT 2009
Author: fjahanian
Date: Fri Aug 28 12:52:37 2009
New Revision: 80381
URL: http://llvm.org/viewvc/llvm-project?rev=80381&view=rev
Log:
patch to prevent crash in hopelessly incorrect
method definition with labels.
Modified:
cfe/trunk/lib/Sema/SemaDeclObjC.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclObjC.cpp?rev=80381&r1=80380&r2=80381&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclObjC.cpp Fri Aug 28 12:52:37 2009
@@ -1664,6 +1664,7 @@
// 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;
More information about the cfe-commits
mailing list