summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-01-24 19:40:13 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-01-24 19:40:13 +0000
commite2a7776effde7407a294e267f4f71e9a477625b2 (patch)
tree8f2c3c3de6e9e12cd430fb32de8d3d79f173dbbd /clang/lib/Sema/SemaExpr.cpp
parentc11d1dd133a26e0c3df0865b36af25e19e57dcf7 (diff)
downloadbcm5719-llvm-e2a7776effde7407a294e267f4f71e9a477625b2.tar.gz
bcm5719-llvm-e2a7776effde7407a294e267f4f71e9a477625b2.zip
objc: Issue a generic diagnostic assigning to
an objc object in any abi mode. llvm-svn: 148847
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 9adf22ad2da..08439e18682 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -7252,14 +7252,9 @@ QualType Sema::CheckAssignmentOperands(Expr *LHSExpr, ExprResult &RHS,
ConvTy = Compatible;
if (ConvTy == Compatible &&
- LHSType->isObjCObjectType()) {
- if (getLangOptions().ObjCNonFragileABI)
- Diag(Loc, diag::err_assignment_requires_nonfragile_object)
- << LHSType;
- else
+ LHSType->isObjCObjectType())
Diag(Loc, diag::err_objc_object_assignment)
<< LHSType;
- }
// If the RHS is a unary plus or minus, check to see if they = and + are
// right next to each other. If so, the user may have typo'd "x =+ 4"
OpenPOWER on IntegriCloud