diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-11-30 22:08:08 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-11-30 22:08:08 +0000 |
commit | 381c0662095014532bce6706858fd8c4e34da3f7 (patch) | |
tree | ec91c405aceee5a4038d26578132d70e61052ddc /lib/AST/StmtPrinter.cpp | |
parent | 5dfee06daa359bbe0f3c9de055b8a02d61a05173 (diff) |
Per an offline conversation with John McCall, have StmtPrinter actually print out the source expression for OpaqueValueExpr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145524 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/StmtPrinter.cpp')
-rw-r--r-- | lib/AST/StmtPrinter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/AST/StmtPrinter.cpp b/lib/AST/StmtPrinter.cpp index 807d35875f..220e50a058 100644 --- a/lib/AST/StmtPrinter.cpp +++ b/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("; |