From b924259cc53e4d38e493616715e7b3e95bdee1ef Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Mon, 21 Sep 2009 23:03:37 +0000 Subject: Removed -fobjc-newgc-api option. clang now conforms to gcc-style write-barrier api only. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82493 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExpr.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/CodeGen/CGExpr.cpp') diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 157369d754..2539387e96 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/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(E)) { -- cgit v1.2.3