diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-01-31 22:00:44 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-01-31 22:00:44 +0000 |
commit | c7a9cda0eb24762a3e9c892b1f4bdc6deb5de0a6 (patch) | |
tree | 4f239d93230d3e0375c4f8fdf1c79ea81ff44c5a /lib/Frontend/FrontendActions.cpp | |
parent | ff9cd968cd5b623e3ec7e5f862b598cd22f7ec79 (diff) |
libclang: Don't allow RemoveFileOnSignal to be called via libclang, badness can
ensue.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/FrontendActions.cpp')
-rw-r--r-- | lib/Frontend/FrontendActions.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Frontend/FrontendActions.cpp b/lib/Frontend/FrontendActions.cpp index eb7152cb47..0ffea201cd 100644 --- a/lib/Frontend/FrontendActions.cpp +++ b/lib/Frontend/FrontendActions.cpp @@ -104,7 +104,10 @@ bool GeneratePCHAction::ComputeASTConsumerArguments(CompilerInstance &CI, return true; } - OS = CI.createDefaultOutputFile(true, InFile); + // We use createOutputFile here because this is exposed via libclang, and we + // must disable the RemoveFileOnSignal behavior. + OS = CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true, + /*RemoveFileOnSignal=*/false, InFile); if (!OS) return true; |