From ec2a9abd4ad16fe41078566e9db0ff78df329f98 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 14 May 2010 16:55:25 +0000 Subject: [PATCH] Fix thinko in yesterday's fix. Providing linkage name for function static variable confuses gdb, so don't do that. llvm-svn: 103779 --- clang/lib/CodeGen/CGDebugInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 019779bd05e2..462b0b195584 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1575,7 +1575,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var, } llvm::StringRef DeclName = D->getName(); llvm::StringRef LinkageName; - if (D->getDeclContext() && isa(D->getDeclContext())) + if (D->getDeclContext() && !isa(D->getDeclContext())) LinkageName = Var->getName(); llvm::DIDescriptor DContext = getContextDescriptor(dyn_cast(D->getDeclContext()), Unit);