]> granicus.if.org Git - clang/commitdiff
Remove a redundant getCanonicalType call
authorDouglas Gregor <dgregor@apple.com>
Fri, 31 Jul 2009 18:32:42 +0000 (18:32 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 31 Jul 2009 18:32:42 +0000 (18:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77702 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaCXXScopeSpec.cpp

index 076685b80848c1d4ee111f0126a4a57ca3e1c699..27e0ccf7d5bec4566bee5f32d90a833880da0bb0 100644 (file)
@@ -146,7 +146,7 @@ CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) {
   if (!NNS->getAsType())
     return 0;
   
-  QualType T = Context.getCanonicalType(QualType(NNS->getAsType(), 0));
+  QualType T = QualType(NNS->getAsType(), 0);
   // If the nested name specifier does not refer to a type, then it
   // does not refer to the current instantiation.
   if (T.isNull())