From: Anders Carlsson Date: Fri, 30 Nov 2007 20:01:38 +0000 (+0000) Subject: Initialize CurMethodDecl to 0. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c19a04a3903a0b0897e3e6deb995bfe2809dca1;p=clang Initialize CurMethodDecl to 0. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44463 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Sema/Sema.cpp b/Sema/Sema.cpp index 6b799e0c74..7bafd7db88 100644 --- a/Sema/Sema.cpp +++ b/Sema/Sema.cpp @@ -64,7 +64,7 @@ QualType Sema::GetObjcProtoType(SourceLocation Loc) { } Sema::Sema(Preprocessor &pp, ASTContext &ctxt) - : PP(pp), Context(ctxt), CurFunctionDecl(0) { + : PP(pp), Context(ctxt), CurFunctionDecl(0), CurMethodDecl(0) { // Get IdentifierInfo objects for known functions for which we // do extra checking.