summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclCXX.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/SemaDeclCXX.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/SemaDeclCXX.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp
index 40fcecfb1cd..c3e947d4321 100644
--- a/clang/lib/Sema/SemaDeclCXX.cpp
+++ b/clang/lib/Sema/SemaDeclCXX.cpp
@@ -1391,7 +1391,7 @@ void Sema::AddCXXDirectInitializerToDecl(DeclTy *Dcl, SourceLocation LParenLoc,
assert(NumExprs == 1 && "Expected 1 expression");
// Set the init expression, handles conversions.
- AddInitializerToDecl(Dcl, ExprTys[0]);
+ AddInitializerToDecl(Dcl, ExprArg(*this, ExprTys[0]));
}
/// PerformInitializationByConstructor - Perform initialization by
OpenPOWER on IntegriCloud