Don't ask for the canonical because we know it is.

This commit is contained in:
Vassil Vassilev 2013-12-11 12:49:27 +01:00 committed by sftnight
parent b0fe13d878
commit dff5dd2cc4

View File

@ -501,8 +501,7 @@ namespace cling {
// to distinguish is by source location comparison.
// FIXME: When the misbehavior of clang is fixed we must avoid relying on
// source locations
FunctionDecl* canonSpecialization = FD->getCanonicalDecl();
FunctionTemplateDeclExt::removeSpecialization(FTD, canonSpecialization);
FunctionTemplateDeclExt::removeSpecialization(FTD, FD);
}
return Successful;