From 2642240de9b9004a431f4e601c055c8c135c9d39 Mon Sep 17 00:00:00 2001 From: Adrian Kuegel Date: Mon, 8 Jan 2024 08:02:44 +0000 Subject: [PATCH] [mlir] Add explicit call to flush ClangTidy performance suggested to use '\n' instead of std::endl, but it seems the flushing behavior was intended here (tests started failing). --- mlir/include/mlir/ExecutionEngine/RunnerUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/include/mlir/ExecutionEngine/RunnerUtils.h b/mlir/include/mlir/ExecutionEngine/RunnerUtils.h index 72001172c426ed..ebf95f90f37450 100644 --- a/mlir/include/mlir/ExecutionEngine/RunnerUtils.h +++ b/mlir/include/mlir/ExecutionEngine/RunnerUtils.h @@ -224,7 +224,7 @@ void printMemRef(const DynamicMemRefType &m) { m.sizes, m.strides); if (m.rank == 0) std::cout << "]"; - std::cout << '\n'; + std::cout << '\n' << std::flush; } template