forked from OSchip/llvm-project
Check function pointer first, before comparing function names.
llvm-svn: 106088
This commit is contained in:
parent
abd60dd1fc
commit
d119da54de
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue