Move the static DeclAttrs map into ASTContext. Fixes <rdar://problem/6983177>.
llvm-svn: 73702
This commit is contained in:
@@ -199,7 +199,7 @@ void CodeGenFunction::StartFunction(const Decl *D, QualType RetTy,
|
||||
void CodeGenFunction::GenerateCode(const FunctionDecl *FD,
|
||||
llvm::Function *Fn) {
|
||||
// Check if we should generate debug info for this function.
|
||||
if (CGM.getDebugInfo() && !FD->hasAttr<NodebugAttr>())
|
||||
if (CGM.getDebugInfo() && !FD->hasAttr<NodebugAttr>(getContext()))
|
||||
DebugInfo = CGM.getDebugInfo();
|
||||
|
||||
FunctionArgList Args;
|
||||
|
||||
Reference in New Issue
Block a user