[cfe-commits] r67192 - /cfe/trunk/lib/Driver/Driver.cpp
Daniel Dunbar
daniel at zuster.org
Wed Mar 18 02:59:01 PDT 2009
Author: ddunbar
Date: Wed Mar 18 04:58:30 2009
New Revision: 67192
URL: http://llvm.org/viewvc/llvm-project?rev=67192&view=rev
Log:
Driver: Bug fix, derived .gch names sometimes started with "/".
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=67192&r1=67191&r2=67192&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Wed Mar 18 04:58:30 2009
@@ -820,7 +820,10 @@
// pathname.
if (JA.getType() == types::TY_PCH) {
BasePath.eraseComponent();
- BasePath.appendComponent(NamedOutput);
+ if (BasePath.isEmpty())
+ BasePath = NamedOutput;
+ else
+ BasePath.appendComponent(NamedOutput);
return C.addResultFile(C.getArgs().MakeArgString(BasePath.c_str()));
} else {
return C.addResultFile(NamedOutput);
More information about the cfe-commits
mailing list