diff --git a/clang/lib/AST/Type.cpp b/clang/lib/AST/Type.cpp --- a/clang/lib/AST/Type.cpp +++ b/clang/lib/AST/Type.cpp @@ -3385,7 +3385,7 @@ epi.ExceptionSpec.NoexceptExpr->Profile(ID, Context, Canonical); } else if (epi.ExceptionSpec.Type == EST_Uninstantiated || epi.ExceptionSpec.Type == EST_Unevaluated) { - ID.AddPointer(epi.ExceptionSpec.SourceDecl->getCanonicalDecl()); + ID.AddPointer(epi.ExceptionSpec.SourceDecl); } if (epi.ExtParameterInfos) { for (unsigned i = 0; i != NumParams; ++i)