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:
Philippe Canal 2012-10-24 20:28:03 +00:00
parent 09ca68c259
commit 4215db4407

View File

@ -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();
}
}
}