diff --git a/lib/AST/InheritViz.cpp b/lib/AST/InheritViz.cpp index e03632a71e0eac59e6bf9e1a6b0281ee9b77c0a7..5a7c938cf0697c14db5c9a92236e1b1d74bf11be 100644 --- a/lib/AST/InheritViz.cpp +++ b/lib/AST/InheritViz.cpp @@ -159,7 +159,7 @@ void CXXRecordDecl::viewInheritance(ASTContext& Context) const { O.close(); // Display the graph - DisplayGraph(Filename); + DisplayGraph(Filename.str()); } else { llvm::errs() << "error opening file for writing!\n"; }