aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/InheritViz.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST/InheritViz.cpp')
-rw-r--r--lib/AST/InheritViz.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/InheritViz.cpp b/lib/AST/InheritViz.cpp
index 40bda72404..3d64310dc5 100644
--- a/lib/AST/InheritViz.cpp
+++ b/lib/AST/InheritViz.cpp
@@ -140,8 +140,8 @@ void CXXRecordDecl::viewInheritance(ASTContext& Context) const {
int FD;
SmallString<128> Filename;
- error_code EC = sys::fs::unique_file(Self.getAsString() + "-%%%%%%.dot", FD,
- Filename);
+ error_code EC =
+ sys::fs::createTemporaryFile(Self.getAsString(), "dot", FD, Filename);
if (EC) {
llvm::errs() << "Error: " << EC.message() << "\n";
return;