[cfe-commits] r161367 - /cfe/trunk/lib/Driver/Driver.cpp

Ted Kremenek kremenek at apple.com
Mon Aug 6 17:02:30 PDT 2012


Author: kremenek
Date: Mon Aug  6 19:02:30 2012
New Revision: 161367

URL: http://llvm.org/viewvc/llvm-project?rev=161367&view=rev
Log:
Handle null suffixes in GetTemporaryPath (PCH files don't have suffixes).

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=161367&r1=161366&r2=161367&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Mon Aug  6 19:02:30 2012
@@ -1687,7 +1687,8 @@
   // FIXME: Grumble, makeUnique sometimes leaves the file around!?  PR3837.
   P.eraseFromDisk(false, 0);
 
-  P.appendSuffix(Suffix);
+  if (Suffix)
+    P.appendSuffix(Suffix);
   return P.str();
 }
 





More information about the cfe-commits mailing list