commit | 34556ff0261d5bccb318234c1f49230a354ac1ea | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Tue Aug 07 00:02:30 2012 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Tue Aug 07 00:02:30 2012 +0000 |
tree | 8daf6f2092d4f1325120378cc55e106ccd9e0d0f | |
parent | 4c58381c3a5506b9f2fe39975d96bdca65d7c2c2 [diff] [blame] |
Handle null suffixes in GetTemporaryPath (PCH files don't have suffixes). llvm-svn: 161367
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 1c47d5c..012d79f 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp
@@ -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(); }