From 2211d345d26d9f7adeb24b21cea96bae1084c15b Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 5 Aug 2009 05:36:45 +0000 Subject: Introduce the canonical type smart pointers, and use them in a few places to tighten up the static type system. llvm-svn: 78164 --- clang/lib/Frontend/PCHReader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/Frontend/PCHReader.cpp') diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp index 61be4da5b74..aab5dd8783f 100644 --- a/clang/lib/Frontend/PCHReader.cpp +++ b/clang/lib/Frontend/PCHReader.cpp @@ -2380,15 +2380,15 @@ PCHReader::ReadDeclarationName(const RecordData &Record, unsigned &Idx) { case DeclarationName::CXXConstructorName: return Context->DeclarationNames.getCXXConstructorName( - GetType(Record[Idx++])); + Context->getCanonicalType(GetType(Record[Idx++]))); case DeclarationName::CXXDestructorName: return Context->DeclarationNames.getCXXDestructorName( - GetType(Record[Idx++])); + Context->getCanonicalType(GetType(Record[Idx++]))); case DeclarationName::CXXConversionFunctionName: return Context->DeclarationNames.getCXXConversionFunctionName( - GetType(Record[Idx++])); + Context->getCanonicalType(GetType(Record[Idx++]))); case DeclarationName::CXXOperatorName: return Context->DeclarationNames.getCXXOperatorName( -- cgit v1.2.3