From: Douglas Gregor Date: Wed, 11 Aug 2010 13:06:56 +0000 (+0000) Subject: Fix a thinko in the creation of temporary files for the precompiled preamble X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bf1830875673d6bd6c5bfcd65c9dcabfb45958b;p=clang 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 --- 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(); }