Skip to content

Commit 12189e1

Browse files
authored
Revert changes that tried to fix error
1 parent 167313c commit 12189e1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/Interpreter/CppInterOp.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2737,12 +2737,7 @@ namespace Cpp {
27372737
#define DEBUG_TYPE "exec"
27382738

27392739
std::array<char, 256> buffer;
2740-
struct pclose_deleter {
2741-
void operator()(FILE* d) const {
2742-
pclose(d);
2743-
}
2744-
};
2745-
std::unique_ptr<FILE, pclose_deleter > pipe(popen(cmd, "r"), pclose);
2740+
std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd, "r"), pclose);
27462741
LLVM_DEBUG(dbgs() << "Executing command '" << cmd << "'\n");
27472742

27482743
if (!pipe) {

0 commit comments

Comments
 (0)