summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-02-21 17:31:28 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-02-21 17:31:28 +0000
commitf5bfc46c95a3a91efc27f811d13257b405b15a6f (patch)
tree5de328e99dce8b4a4295a9de5459013e95eb2b38 /clang/lib/Sema
parentb4863a41e9b2b8a2d75b7d04a5f3671b29337e90 (diff)
downloadbcm5719-llvm-f5bfc46c95a3a91efc27f811d13257b405b15a6f.tar.gz
bcm5719-llvm-f5bfc46c95a3a91efc27f811d13257b405b15a6f.zip
Remove warning on future change in ivar lookup rule
when doing the property default synthesis. // rdar://9027673. llvm-svn: 126128
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 65b57c30cd7..84baa7d9852 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -1675,20 +1675,6 @@ ExprResult Sema::ActOnIdExpression(Scope *S,
// This is guaranteed from this point on.
assert(!R.empty() || ADL);
- if (VarDecl *Var = R.getAsSingle<VarDecl>()) {
- if (getLangOptions().ObjCNonFragileABI && IvarLookupFollowUp &&
- !(getLangOptions().ObjCDefaultSynthProperties &&
- getLangOptions().ObjCNonFragileABI2) &&
- Var->isFileVarDecl()) {
- ObjCPropertyDecl *Property = canSynthesizeProvisionalIvar(II);
- if (Property) {
- Diag(NameLoc, diag::warn_ivar_variable_conflict) << Var->getDeclName();
- Diag(Property->getLocation(), diag::note_property_declare);
- Diag(Var->getLocation(), diag::note_global_declared_at);
- }
- }
- }
-
// Check whether this might be a C++ implicit instance member access.
// C++ [class.mfct.non-static]p3:
// When an id-expression that is not part of a class member access
OpenPOWER on IntegriCloud