From: Chris Lattner Date: Tue, 21 Aug 2007 05:02:10 +0000 (+0000) Subject: simplify this a bit to remove indirection X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c748f27f4055f5732a3c231f31dc7325c5279020;p=clang simplify this a bit to remove indirection git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41216 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/CodeGen/CGAggExpr.cpp b/CodeGen/CGAggExpr.cpp index 4382fec6a4..65cb488aa2 100644 --- a/CodeGen/CGAggExpr.cpp +++ b/CodeGen/CGAggExpr.cpp @@ -289,13 +289,13 @@ void AggExprEmitter::VisitConditionalOperator(const ConditionalOperator *E) { // Handle the GNU extension for missing LHS. assert(E->getLHS() && "Must have LHS for aggregate value"); - CGF.EmitAggExpr(E->getLHS(), DestPtr, VolatileDest); + Visit(E->getLHS()); CGF.Builder.CreateBr(ContBlock); - LHSBlock =CGF. Builder.GetInsertBlock(); + LHSBlock = CGF.Builder.GetInsertBlock(); CGF.EmitBlock(RHSBlock); - CGF.EmitAggExpr(E->getRHS(), DestPtr, VolatileDest); + Visit(E->getRHS()); CGF.Builder.CreateBr(ContBlock); RHSBlock = CGF.Builder.GetInsertBlock();