diff options
author | Devang Patel <dpatel@apple.com> | 2010-06-16 06:42:02 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-06-16 06:42:02 +0000 |
commit | 87304bfe469ec55fce6cc37c625b8db2b8f8aba3 (patch) | |
tree | 855715f535e8d675a64a01a4b72379e986ae1ee2 /lib/Analysis | |
parent | afc051bfd042cc6aa897a26d93eeb88f9f4802ca (diff) | |
download | external_llvm-87304bfe469ec55fce6cc37c625b8db2b8f8aba3.zip external_llvm-87304bfe469ec55fce6cc37c625b8db2b8f8aba3.tar.gz external_llvm-87304bfe469ec55fce6cc37c625b8db2b8f8aba3.tar.bz2 |
Check function pointer first, before comparing function names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/DebugInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index 6ef160b..c5cf3ff 100644 --- a/lib/Analysis/DebugInfo.cpp +++ b/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(); |