aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-03-03 00:36:02 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-03-03 00:36:02 +0000
commitb9c62c0773757562b1abed808c5441e52fc0b77c (patch)
treea1d50e1fcdca5fef72f8bd4b6ce8fd88a0e5d0a4 /clang/lib/Frontend/FrontendActions.cpp
parent62a58f492801b199fde60fea9a9fd7f5e5ce8ed4 (diff)
downloadllvm-b9c62c0773757562b1abed808c5441e52fc0b77c.zip
llvm-b9c62c0773757562b1abed808c5441e52fc0b77c.tar.gz
llvm-b9c62c0773757562b1abed808c5441e52fc0b77c.tar.bz2
Frontend: Don't automatically create missing directories when using temporary files with createOutputFile()
- This would otherwise happen as a side effect of llvm::sys::fs::unique_file creating parent directories. llvm-svn: 151960
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r--clang/lib/Frontend/FrontendActions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp
index 96b0b83..a4e168b 100644
--- a/clang/lib/Frontend/FrontendActions.cpp
+++ b/clang/lib/Frontend/FrontendActions.cpp
@@ -340,7 +340,8 @@ bool GenerateModuleAction::ComputeASTConsumerArguments(CompilerInstance &CI,
// We use a temporary to avoid race conditions.
OS = CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true,
/*RemoveFileOnSignal=*/false, InFile,
- /*Extension=*/"", /*useTemporary=*/true);
+ /*Extension=*/"", /*useTemporary=*/true,
+ /*CreateMissingDirectories=*/true);
if (!OS)
return true;