From: Devang Patel Date: Wed, 16 Jun 2010 06:42:02 +0000 (+0000) Subject: Check function pointer first, before comparing function names. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ffd33cd36494cf29a0b0c80f00ed1a51b599b31f;p=oota-llvm.git 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 --- diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index 6ef160b9726..c5cf3ffba57 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();