From: Chris Lattner Date: Sun, 27 Jul 2008 00:05:05 +0000 (+0000) Subject: remove two uses of getCanonicalType I missed. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b63eef830b7a2501f1ab8e8fa38068e5e07ed32;p=clang remove two uses of getCanonicalType I missed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54114 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 56e97c0461..3478de5bf5 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -543,7 +543,8 @@ void Sema::CheckImplementationIvars(ObjCImplementationDecl *ImpDecl, ObjCIvarDecl* ClsIvar = *IVI; assert (ImplIvar && "missing implementation ivar"); assert (ClsIvar && "missing class ivar"); - if (ImplIvar->getCanonicalType() != ClsIvar->getCanonicalType()) { + if (Context.getCanonicalType(ImplIvar->getType()) != + Context.getCanonicalType(ClsIvar->getType())) { Diag(ImplIvar->getLocation(), diag::err_conflicting_ivar_type, ImplIvar->getIdentifier()->getName()); Diag(ClsIvar->getLocation(), diag::err_previous_definition,