aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/ASTUnit.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-11 13:06:56 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-11 13:06:56 +0000
commit6bf1830875673d6bd6c5bfcd65c9dcabfb45958b (patch)
treec20a855756948624c73ad80ecee01ef4e259d984 /lib/Frontend/ASTUnit.cpp
parentdeacbdca554298ccdf636f19c6094a8825ec6b34 (diff)
Fix a thinko in the creation of temporary files for the precompiled preamble
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110804 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/ASTUnit.cpp')
-rw-r--r--lib/Frontend/ASTUnit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Frontend/ASTUnit.cpp b/lib/Frontend/ASTUnit.cpp
index b287522806..fe4768db7c 100644
--- a/lib/Frontend/ASTUnit.cpp
+++ b/lib/Frontend/ASTUnit.cpp
@@ -561,10 +561,11 @@ static std::string GetPreamblePCHPath() {
TmpDir = "/tmp";
llvm::sys::Path P(TmpDir);
P.appendComponent("preamble");
+ P.appendSuffix("pch");
if (P.createTemporaryFileOnDisk())
return std::string();
- P.appendSuffix("pch");
+ fprintf(stderr, "Preamble file: %s\n", P.str().c_str());
return P.str();
}