[cfe-commits] r89192 - /cfe/trunk/lib/Sema/SemaOverload.cpp

Eli Friedman eli.friedman at gmail.com
Tue Nov 17 19:58:17 PST 2009


Author: efriedma
Date: Tue Nov 17 21:58:17 2009
New Revision: 89192

URL: http://llvm.org/viewvc/llvm-project?rev=89192&view=rev
Log:
Make CreateOverloadedUnaryOp build the correct node for postinc/dec operators.


Modified:
    cfe/trunk/lib/Sema/SemaOverload.cpp

Modified: cfe/trunk/lib/Sema/SemaOverload.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOverload.cpp?rev=89192&r1=89191&r2=89192&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOverload.cpp Tue Nov 17 21:58:17 2009
@@ -4754,10 +4754,10 @@
       UsualUnaryConversions(FnExpr);
 
       input.release();
-
+      Args[0] = Input;
       ExprOwningPtr<CallExpr> TheCall(this,
         new (Context) CXXOperatorCallExpr(Context, Op, FnExpr,
-                                          &Input, 1, ResultTy, OpLoc));
+                                          Args, NumArgs, ResultTy, OpLoc));
       
       if (CheckCallReturnType(FnDecl->getResultType(), OpLoc, TheCall.get(), 
                               FnDecl))





More information about the cfe-commits mailing list