Always return the canonical decl of a function to ease comparison
git-svn-id: http://root.cern.ch/svn/root/trunk@46787 27541ba8-7e3a-0410-8455-c3a389f83636
This commit is contained in:
parent
09ca68c259
commit
4215db4407
@ -516,6 +516,9 @@ namespace cling {
|
||||
Best);
|
||||
if (OR == OR_Success) {
|
||||
TheDecl = Best->Function;
|
||||
// We prefer to get the canonical decl for consistency and ease
|
||||
// of comparison.
|
||||
TheDecl = TheDecl->getCanonicalDecl();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -798,6 +801,9 @@ namespace cling {
|
||||
Best);
|
||||
if (OR == OR_Success) {
|
||||
TheDecl = Best->Function;
|
||||
// We prefer to get the canonical decl for consistency and ease
|
||||
// of comparison.
|
||||
TheDecl = TheDecl->getCanonicalDecl();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user