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 | ffd33cd36494cf29a0b0c80f00ed1a51b599b31f (patch) | |
tree | 855715f535e8d675a64a01a4b72379e986ae1ee2 /lib/Analysis/DebugInfo.cpp | |
parent | 2f7d5291de87bfa195884e84dc0efe9705c2215c (diff) |
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/DebugInfo.cpp')
-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 6ef160b972..c5cf3ffba5 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(); |