Commits

Jordan Rose committed de882dbf628
[Serialization] Fix improper handling of intermediate files. The old code misused clang::CompilerInstance::createOutputFile (which should really be sunk down to LLVM). That API specifically handles the case where you can write to the final output file, but not to anything else in that directory. I'm fixing this (and cleaning up the code) because of a copy/paste error Dmitri noticed, where the temp file for the .swiftdoc output would be created as if it were for the .swiftmodule file. This is also now fixed, and the copy/paste code has been refactored. This change should only really affect the case described above, so it's not urgent. Swift SVN r30206