Skip to content

Commit

Permalink
Update lib/Interpreter/CppInterOp.cpp
Browse files Browse the repository at this point in the history
Update lib/Interpreter/CppInterOp.cpp
  • Loading branch information
mcbarton committed Jan 21, 2025
1 parent 4ab4fad commit 1b57229
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Interpreter/CppInterOp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2831,8 +2831,7 @@ namespace Cpp {
struct file_deleter {
void operator()(FILE* fp) { pclose(fp); }
};
using file_pointer = std::unique_ptr<FILE, file_deleter>;
file_pointer pipe{popen(cmd, "r")};
std::unique_ptr<FILE, file_deleter> pipe{popen(cmd, "r")};
LLVM_DEBUG(dbgs() << "Executing command '" << cmd << "'\n");

if (!pipe) {
Expand Down Expand Up @@ -3444,8 +3443,7 @@ namespace Cpp {
struct file_deleter {
void operator()(FILE* fp) { pclose(fp); }
};
using file_pointer = std::unique_ptr<FILE, file_deleter>;
file_pointer m_TempFile;
std::unique_ptr<FILE, file_deleter> m_TempFile;
int m_FD = -1;
int m_DupFD = -1;

Expand Down

0 comments on commit 1b57229

Please sign in to comment.