From 78bd61f6613196207adcfe48d59b2410882df1b8 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 18 Jun 2009 16:11:24 +0000 Subject: Move the static DeclAttrs map into ASTContext. Fixes . llvm-svn: 73702 --- clang/lib/CodeGen/CGObjC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGObjC.cpp') diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp index 51f9a765792..e7cf8e6e653 100644 --- a/clang/lib/CodeGen/CGObjC.cpp +++ b/clang/lib/CodeGen/CGObjC.cpp @@ -126,7 +126,7 @@ void CodeGenFunction::StartObjCMethod(const ObjCMethodDecl *OMD, /// its pointer, name, and types registered in the class struture. void CodeGenFunction::GenerateObjCMethod(const ObjCMethodDecl *OMD) { // Check if we should generate debug info for this method. - if (CGM.getDebugInfo() && !OMD->hasAttr()) + if (CGM.getDebugInfo() && !OMD->hasAttr(getContext())) DebugInfo = CGM.getDebugInfo(); StartObjCMethod(OMD, OMD->getClassInterface()); EmitStmt(OMD->getBody(getContext())); -- cgit v1.2.3