summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 157369d7545..2539387e967 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -691,8 +691,7 @@ void CodeGenFunction::EmitStoreThroughExtVectorComponentLValue(RValue Src,
// or neither.
static
void setObjCGCLValueClass(const ASTContext &Ctx, const Expr *E, LValue &LV) {
- if (Ctx.getLangOptions().getGCMode() == LangOptions::NonGC ||
- !Ctx.getLangOptions().ObjCNewGCAPI)
+ if (Ctx.getLangOptions().getGCMode() == LangOptions::NonGC)
return;
if (isa<ObjCIvarRefExpr>(E)) {
OpenPOWER on IntegriCloud