[cfe-commits] r147407 - /cfe/trunk/lib/Sema/SemaDecl.cpp

Rafael Espindola rafael.espindola at gmail.com
Sun Jan 1 10:37:00 PST 2012


Author: rafael
Date: Sun Jan  1 12:36:59 2012
New Revision: 147407

URL: http://llvm.org/viewvc/llvm-project?rev=147407&view=rev
Log:
Use hasSameType.

Modified:
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=147407&r1=147406&r2=147407&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Sun Jan  1 12:36:59 2012
@@ -1379,8 +1379,7 @@
   if (OldType != NewType &&
       !OldType->isDependentType() &&
       !NewType->isDependentType() &&
-      Context.getCanonicalType(OldType) !=
-      Context.getCanonicalType(NewType)) {
+      !Context.hasSameType(OldType, NewType)) {
     int Kind = isa<TypeAliasDecl>(Old) ? 1 : 0;
     Diag(New->getLocation(), diag::err_redefinition_different_typedef)
       << Kind << NewType << OldType;





More information about the cfe-commits mailing list