summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-26 20:50:02 +0000
committerChris Lattner <sabre@nondot.org>2008-07-26 20:50:02 +0000
commitac87ef5dcc56146d2774197e89ddef6ca2bf98b9 (patch)
treecac7261ff9f75001cb16d09c0278c9aba80b3852 /clang/lib
parent7e80097f6e5c1bd99ab27e28cefc276996f02bf3 (diff)
downloadbcm5719-llvm-ac87ef5dcc56146d2774197e89ddef6ca2bf98b9.tar.gz
bcm5719-llvm-ac87ef5dcc56146d2774197e89ddef6ca2bf98b9.zip
remove a helper method.
llvm-svn: 54101
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index 07cc890fde3..d3e2ed3b1d6 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -279,7 +279,8 @@ Sema::DiagnosePropertyMismatch(ObjCPropertyDecl *Property,
Property->getName(), "getter", inheritedName,
SourceRange());
- if (Property->getCanonicalType() != SuperProperty->getCanonicalType())
+ if (Context.getCanonicalType(Property->getType()) !=
+ Context.getCanonicalType(SuperProperty->getType()))
Diag(Property->getLocation(), diag::warn_property_type,
Property->getType().getAsString(),
inheritedName);
@@ -1145,7 +1146,8 @@ Sema::DeclTy *Sema::ActOnPropertyImplDecl(SourceLocation AtLoc,
return 0;
}
// Check that type of property and its ivar match.
- if (Ivar->getCanonicalType() != property->getCanonicalType()) {
+ if (Context.getCanonicalType(Ivar->getType()) !=
+ Context.getCanonicalType(property->getType())) {
Diag(PropertyLoc, diag::error_property_ivar_type, property->getName(),
Ivar->getName());
return 0;
OpenPOWER on IntegriCloud