summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-11-30 22:08:08 +0000
committerTed Kremenek <kremenek@apple.com>2011-11-30 22:08:08 +0000
commitf551f326fc5ab2d3a74eef941b7505565e7152ff (patch)
tree13249e74326b50c7a9ab2178ace524a55a9f81e5 /clang/lib/AST/StmtPrinter.cpp
parent6cff9df2984bd52b455023f5841289c6cfafed6e (diff)
downloadbcm5719-llvm-f551f326fc5ab2d3a74eef941b7505565e7152ff.tar.gz
bcm5719-llvm-f551f326fc5ab2d3a74eef941b7505565e7152ff.zip
Per an offline conversation with John McCall, have StmtPrinter actually print out the source expression for OpaqueValueExpr.
llvm-svn: 145524
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
-rw-r--r--clang/lib/AST/StmtPrinter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp
index 807d35875f6..220e50a058a 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -1616,7 +1616,9 @@ void StmtPrinter::VisitBlockDeclRefExpr(BlockDeclRefExpr *Node) {
OS << *Node->getDecl();
}
-void StmtPrinter::VisitOpaqueValueExpr(OpaqueValueExpr *Node) {}
+void StmtPrinter::VisitOpaqueValueExpr(OpaqueValueExpr *Node) {
+ PrintExpr(Node->getSourceExpr());
+}
void StmtPrinter::VisitAsTypeExpr(AsTypeExpr *Node) {
OS << "__builtin_astype(";
OpenPOWER on IntegriCloud