summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-05-14 16:55:25 +0000
committerDevang Patel <dpatel@apple.com>2010-05-14 16:55:25 +0000
commitec2a9abd4ad16fe41078566e9db0ff78df329f98 (patch)
tree096d69862979290d62c4bec6ed0af3b8d895eef8 /clang/lib/CodeGen
parent30e3db2ba389793560b6e6dbb3a649fb5601db64 (diff)
downloadbcm5719-llvm-ec2a9abd4ad16fe41078566e9db0ff78df329f98.tar.gz
bcm5719-llvm-ec2a9abd4ad16fe41078566e9db0ff78df329f98.zip
Fix thinko in yesterday's fix.
Providing linkage name for function static variable confuses gdb, so don't do that. llvm-svn: 103779
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 019779bd05e..462b0b19558 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<FunctionDecl>(D->getDeclContext()))
+ if (D->getDeclContext() && !isa<FunctionDecl>(D->getDeclContext()))
LinkageName = Var->getName();
llvm::DIDescriptor DContext =
getContextDescriptor(dyn_cast<Decl>(D->getDeclContext()), Unit);
OpenPOWER on IntegriCloud