We should append the outfile name to the path.

This commit is contained in:
Vassil Vassilev 2013-10-01 14:17:22 +02:00 committed by sftnight
parent 6c51340d51
commit a9b71bb973

View File

@ -62,6 +62,7 @@ namespace cling {
llvm::sys::fs::make_absolute(TempPath);
assert(llvm::sys::fs::is_directory(TempPath.str()) && "Must be a folder.");
// Create a temporary file.
llvm::sys::path::append(TempPath, OutFile);
TempPath += "-%%%%%%%%";
int fd;
if (llvm::sys::fs::createUniqueFile(TempPath.str(), fd, TempPath)