summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprCXX.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2008-12-13 16:23:55 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2008-12-13 16:23:55 +0000
commitc675baba92457d5da1583bd7e10a77b53e0a6421 (patch)
treec1e9012f3247761b6a9127fc09c7ade065f5f2ad /clang/lib/Sema/SemaExprCXX.cpp
parentcb6e2c615605d22f726029cba09a8c92c6638f8d (diff)
downloadbcm5719-llvm-c675baba92457d5da1583bd7e10a77b53e0a6421.tar.gz
bcm5719-llvm-c675baba92457d5da1583bd7e10a77b53e0a6421.zip
Some utilities for using the smart pointers in Actions, especially Sema. Convert a few functions.
llvm-svn: 60983
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
-rw-r--r--clang/lib/Sema/SemaExprCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index a32a6f68fad..e951016361a 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -645,7 +645,7 @@ Sema::ActOnCXXConditionDeclarationExpr(Scope *S, SourceLocation StartLoc,
DeclTy *Dcl = ActOnDeclarator(S, D, 0);
if (!Dcl)
return true;
- AddInitializerToDecl(Dcl, AssignExprVal);
+ AddInitializerToDecl(Dcl, ExprArg(*this, AssignExprVal));
// Mark this variable as one that is declared within a conditional.
if (VarDecl *VD = dyn_cast<VarDecl>((Decl *)Dcl))
OpenPOWER on IntegriCloud