aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/PrintParserCallbacks.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-08-16 05:13:48 +0000
committerAnders Carlsson <andersca@mac.com>2009-08-16 05:13:48 +0000
commit9abf2aedae7538cfd85f3ff0898a6d14385c8e36 (patch)
treea173ddcd8f0aa57278b894e1c9917e79bb556e0f /lib/Frontend/PrintParserCallbacks.cpp
parent2d46eb21eb2c904831b0e9f75ab3523384c70e66 (diff)
AddInitializerToDecl can't take a FullExprArg. Make it take an ExprArg, and create the CXXExprWithTemporaries before setting the initializer on the VarDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PrintParserCallbacks.cpp')
-rw-r--r--lib/Frontend/PrintParserCallbacks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/PrintParserCallbacks.cpp b/lib/Frontend/PrintParserCallbacks.cpp
index 2101a85f41..9d6ea73eef 100644
--- a/lib/Frontend/PrintParserCallbacks.cpp
+++ b/lib/Frontend/PrintParserCallbacks.cpp
@@ -109,7 +109,7 @@ namespace {
/// This allows ActOnDeclarator to register "xx" prior to parsing the
/// initializer. The declaration above should still result in a warning,
/// since the reference to "xx" is uninitialized.
- virtual void AddInitializerToDecl(DeclPtrTy Dcl, FullExprArg Init) {
+ virtual void AddInitializerToDecl(DeclPtrTy Dcl, ExprArg Init) {
Out << __FUNCTION__ << "\n";
}