[cfe-commits] r110804 - /cfe/trunk/lib/Frontend/ASTUnit.cpp
Douglas Gregor
dgregor at apple.com
Wed Aug 11 06:06:56 PDT 2010
Author: dgregor
Date: Wed Aug 11 08:06:56 2010
New Revision: 110804
URL: http://llvm.org/viewvc/llvm-project?rev=110804&view=rev
Log:
Fix a thinko in the creation of temporary files for the precompiled preamble
Modified:
cfe/trunk/lib/Frontend/ASTUnit.cpp
Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=110804&r1=110803&r2=110804&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Wed Aug 11 08:06:56 2010
@@ -561,10 +561,11 @@
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();
}
More information about the cfe-commits
mailing list