]> granicus.if.org Git - clang/commitdiff
Fix a thinko in the creation of temporary files for the precompiled preamble
authorDouglas Gregor <dgregor@apple.com>
Wed, 11 Aug 2010 13:06:56 +0000 (13:06 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 11 Aug 2010 13:06:56 +0000 (13:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110804 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/ASTUnit.cpp

index b287522806ed1ee8e7f0160124b4e3b576447702..fe4768db7c72afa98c85f6806d285def04ee2672 100644 (file)
@@ -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();
 }