]> granicus.if.org Git - clang/commitdiff
Initialize CurMethodDecl to 0.
authorAnders Carlsson <andersca@mac.com>
Fri, 30 Nov 2007 20:01:38 +0000 (20:01 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 30 Nov 2007 20:01:38 +0000 (20:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44463 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/Sema.cpp

index 6b799e0c74f36e13b846436bdc17b0c6c0487688..7bafd7db883e4a82b051f44288a21d0b605a1606 100644 (file)
@@ -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.