diff options
author | Devang Patel <dpatel@apple.com> | 2010-05-14 16:55:25 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-05-14 16:55:25 +0000 |
commit | 0fd3d1f5664149f0a6b62fc847eeabf4d8659360 (patch) | |
tree | f34038d99af80aa0a3ab6aa2f5881a319b77dc2b /lib/CodeGen/CGDebugInfo.cpp | |
parent | a63db84b164d3f1c987a3ea6251e3092db4f317b (diff) |
Fix thinko in yesterday's fix.
Providing linkage name for function static variable confuses gdb, so don't do that.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 019779bd05..462b0b1955 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/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<FunctionDecl>(D->getDeclContext())) + if (D->getDeclContext() && !isa<FunctionDecl>(D->getDeclContext())) LinkageName = Var->getName(); llvm::DIDescriptor DContext = getContextDescriptor(dyn_cast<Decl>(D->getDeclContext()), Unit); |