From e739980bf78021f6021e9d56faff773c72791af9 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 27 Feb 2020 12:33:00 +0300 Subject: Revert recent Clang optimization bug workaround as it doesn't help --- libbuild2/test/script/runner.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/libbuild2/test/script/runner.cxx b/libbuild2/test/script/runner.cxx index a11ec2c..3d03bd8 100644 --- a/libbuild2/test/script/runner.cxx +++ b/libbuild2/test/script/runner.cxx @@ -1169,13 +1169,6 @@ namespace build2 size_t ci, size_t li, const location& ll, bool diag) { - // These are used to be defined much later but there is some - // optimization bug in Clang (as of 10.0.0-rc2; see the #45021 bug - // report for details). - // - path osp; - fdpipe ofd; - if (bc == ec) // End of the pipeline. return true; @@ -1523,6 +1516,9 @@ namespace build2 return fd; }; + path osp; + fdpipe ofd; + // If this is the last command in the pipeline than redirect the // command process stdout to a file. Otherwise create a pipe and // redirect the stdout to the write-end of the pipe. The read-end will -- cgit v1.1