diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-11-18 03:58:17 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-11-18 03:58:17 +0000 |
commit | 4c3b8962291d4255e6f4e27080efefa5ff01dabf (patch) | |
tree | 1f555f2666ade344beee784590bec0ff9313bf85 /lib/Sema/SemaOverload.cpp | |
parent | 582b037149f235caee7f71a5c8f81b868bd283ca (diff) |
Make CreateOverloadedUnaryOp build the correct node for postinc/dec operators.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 634c9ceefc..c39cab211d 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -4754,10 +4754,10 @@ Sema::OwningExprResult Sema::CreateOverloadedUnaryOp(SourceLocation OpLoc, 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)) |