]> granicus.if.org Git - clang/commitdiff
simplify this a bit to remove indirection
authorChris Lattner <sabre@nondot.org>
Tue, 21 Aug 2007 05:02:10 +0000 (05:02 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 21 Aug 2007 05:02:10 +0000 (05:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41216 91177308-0d34-0410-b5e6-96231b3b80d8

CodeGen/CGAggExpr.cpp

index 4382fec6a4210f7205b08f12ec083e227e22e52e..65cb488aa29b0dde2ae2408d99654c521be5170d 100644 (file)
@@ -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();