Skip to content

Commit ed5039a

Browse files
authored
Update CppInterOp.cpp
1 parent 4748aaf commit ed5039a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Interpreter/CppInterOp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3208,7 +3208,7 @@ namespace Cpp {
32083208

32093209
public:
32103210
#if defined(_WIN32)
3211-
StreamCaptureInfo(int FD) : m_TempFile(llvm::sys::fs::TempFile::create(".tmp%%%%%%%"), std::fclose), m_FD(FD) {
3211+
StreamCaptureInfo(int FD) : m_TempFile(tmpfile(), std::fclose), m_FD(FD) {
32123212
if (!m_TempFile) {
32133213
perror("StreamCaptureInfo: Unable to create temp file");
32143214
return;

0 commit comments

Comments
 (0)