summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaOverload.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-11-18 03:58:17 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-11-18 03:58:17 +0000
commit030eee4e5c369b77376c4cb56d3a3f16c9e9655f (patch)
treef1134e97e4d65fd7a09cad2dcbfc65d02fb1590e /clang/lib/Sema/SemaOverload.cpp
parent83d5e00a96e7f6a1f8485e9277b22b53ab8c7dbb (diff)
downloadbcm5719-llvm-030eee4e5c369b77376c4cb56d3a3f16c9e9655f.tar.gz
bcm5719-llvm-030eee4e5c369b77376c4cb56d3a3f16c9e9655f.zip
Make CreateOverloadedUnaryOp build the correct node for postinc/dec operators.
llvm-svn: 89192
Diffstat (limited to 'clang/lib/Sema/SemaOverload.cpp')
-rw-r--r--clang/lib/Sema/SemaOverload.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp
index 634c9ceefc7..c39cab211db 100644
--- a/clang/lib/Sema/SemaOverload.cpp
+++ b/clang/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))
OpenPOWER on IntegriCloud