]> granicus.if.org Git - clang/commitdiff
remove two uses of getCanonicalType I missed.
authorChris Lattner <sabre@nondot.org>
Sun, 27 Jul 2008 00:05:05 +0000 (00:05 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 27 Jul 2008 00:05:05 +0000 (00:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54114 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclObjC.cpp

index 56e97c046114b48d10d4b7194ac8cea26c708087..3478de5bf534a2c992012d8837368b7529ad048d 100644 (file)
@@ -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,