Skip to content

Commit

Permalink
Revert change to show error
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbarton authored Jan 19, 2025
1 parent 089a4da commit e292564
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/Interpreter/CppInterOp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2828,14 +2828,9 @@ namespace Cpp {
#define DEBUG_TYPE "exec"

std::array<char, 256> buffer;
#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wignored-attributes"
#endif

std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd, "r"), pclose);
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif

LLVM_DEBUG(dbgs() << "Executing command '" << cmd << "'\n");

if (!pipe) {
Expand Down

0 comments on commit e292564

Please sign in to comment.