Add CXXExprWithCleanup
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70000 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/StmtPrinter.cpp b/lib/AST/StmtPrinter.cpp
index 5e75a2e..1a74937 100644
--- a/lib/AST/StmtPrinter.cpp
+++ b/lib/AST/StmtPrinter.cpp
@@ -1105,6 +1105,11 @@
// Nothing to print.
}
+void StmtPrinter::VisitCXXExprWithCleanup(CXXExprWithCleanup *E) {
+ // Just forward to the sub expression.
+ PrintExpr(E->getSubExpr());
+}
+
static const char *getTypeTraitName(UnaryTypeTrait UTT) {
switch (UTT) {
default: assert(false && "Unknown type trait");