summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-30 21:37:25 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-30 21:37:25 +0000
commit5e9444f5412365482d65cc6d64385b53747cee88 (patch)
tree32f063422d50932333d5937baa45299510d071eb /clang/lib/Sema/SemaDecl.cpp
parentf8e916de852f065a221aa677e2045239b47ae233 (diff)
downloadbcm5719-llvm-5e9444f5412365482d65cc6d64385b53747cee88.tar.gz
bcm5719-llvm-5e9444f5412365482d65cc6d64385b53747cee88.zip
AddInitializerToDecl needs to take a full expression.
llvm-svn: 72640
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 3ea0b416229..09ec071bb1b 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -2468,8 +2468,8 @@ bool Sema::CheckForConstantInitializer(Expr *Init, QualType DclT) {
return true;
}
-void Sema::AddInitializerToDecl(DeclPtrTy dcl, ExprArg init) {
- AddInitializerToDecl(dcl, move(init), /*DirectInit=*/false);
+void Sema::AddInitializerToDecl(DeclPtrTy dcl, FullExprArg init) {
+ AddInitializerToDecl(dcl, init.release(), /*DirectInit=*/false);
}
/// AddInitializerToDecl - Adds the initializer Init to the
OpenPOWER on IntegriCloud