summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-06-16 06:42:02 +0000
committerDevang Patel <dpatel@apple.com>2010-06-16 06:42:02 +0000
commitd119da54de91da85ce2cbafe0fe2e81e339795ed (patch)
treef09c98430d52404aafe8cab592b9e6fae154a6da /llvm/lib/Analysis/DebugInfo.cpp
parentabd60dd1fc2c4b6d02fdd54a6f749c872c0b041b (diff)
downloadbcm5719-llvm-d119da54de91da85ce2cbafe0fe2e81e339795ed.tar.gz
bcm5719-llvm-d119da54de91da85ce2cbafe0fe2e81e339795ed.zip
Check function pointer first, before comparing function names.
llvm-svn: 106088
Diffstat (limited to 'llvm/lib/Analysis/DebugInfo.cpp')
-rw-r--r--llvm/lib/Analysis/DebugInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp
index 6ef160b9726..c5cf3ffba57 100644
--- a/llvm/lib/Analysis/DebugInfo.cpp
+++ b/llvm/lib/Analysis/DebugInfo.cpp
@@ -406,6 +406,8 @@ bool DIVariable::isInlinedFnArgument(const Function *CurFn) {
/// 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();
OpenPOWER on IntegriCloud