[cfe-commits] r103779 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Devang Patel
dpatel at apple.com
Fri May 14 09:55:25 PDT 2010
Author: dpatel
Date: Fri May 14 11:55:25 2010
New Revision: 103779
URL: http://llvm.org/viewvc/llvm-project?rev=103779&view=rev
Log:
Fix thinko in yesterday's fix.
Providing linkage name for function static variable confuses gdb, so don't do that.
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=103779&r1=103778&r2=103779&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Fri May 14 11:55:25 2010
@@ -1575,7 +1575,7 @@
}
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);
More information about the cfe-commits
mailing list