Skip to content
Snippets Groups Projects
Commit 204a4be3 authored by Philippe Canal's avatar Philippe Canal
Browse files

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
parent 8775dd80
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment