diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-13 16:23:55 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-13 16:23:55 +0000 |
commit | c675baba92457d5da1583bd7e10a77b53e0a6421 (patch) | |
tree | c1e9012f3247761b6a9127fc09c7ade065f5f2ad /clang/lib/Sema/SemaExprCXX.cpp | |
parent | cb6e2c615605d22f726029cba09a8c92c6638f8d (diff) | |
download | bcm5719-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.cpp | 2 |
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)) |