[llvm-commits] [llvm] r106088 - /llvm/trunk/lib/Analysis/DebugInfo.cpp
Devang Patel
dpatel at apple.com
Tue Jun 15 23:42:02 PDT 2010
Author: dpatel
Date: Wed Jun 16 01:42:02 2010
New Revision: 106088
URL: http://llvm.org/viewvc/llvm-project?rev=106088&view=rev
Log:
Check function pointer first, before comparing function names.
Modified:
llvm/trunk/lib/Analysis/DebugInfo.cpp
Modified: llvm/trunk/lib/Analysis/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/DebugInfo.cpp?rev=106088&r1=106087&r2=106088&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/DebugInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/DebugInfo.cpp Wed Jun 16 01:42:02 2010
@@ -406,6 +406,8 @@
/// information for the function F.
bool DISubprogram::describes(const Function *F) {
assert(F && "Invalid function");
+ if (F == getFunction())
+ return true;
StringRef Name = getLinkageName();
if (Name.empty())
Name = getName();
More information about the llvm-commits
mailing list