diff options
author | Richard Trieu <rtrieu@google.com> | 2013-03-23 01:38:36 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2013-03-23 01:38:36 +0000 |
commit | 060fe33d41ea975db519c96def5c2d2b1da7a78f (patch) | |
tree | 285baeec6012c22e9fc6adefabdd430d232242f5 /lib/AST/ASTDiagnostic.cpp | |
parent | 4708b3dde86b06f40927ae9cf30a2de83949a8f2 (diff) |
Strip off local qualifiers when converting from RecordType to
TemplateSpecializationType during template type diffing. This allows the
correct printing of diffing qualifiers on templates.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177809 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTDiagnostic.cpp')
-rw-r--r-- | lib/AST/ASTDiagnostic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/ASTDiagnostic.cpp b/lib/AST/ASTDiagnostic.cpp index b1d67f8a2b..b9c57ab2e9 100644 --- a/lib/AST/ASTDiagnostic.cpp +++ b/lib/AST/ASTDiagnostic.cpp @@ -811,7 +811,7 @@ class TemplateDiff { TemplateName(CTSD->getSpecializedTemplate()), CTSD->getTemplateArgs().data(), CTSD->getTemplateArgs().size(), - Ty.getCanonicalType()); + Ty.getLocalUnqualifiedType().getCanonicalType()); return Ty->getAs<TemplateSpecializationType>(); } |