From 261a84f9cf98be80913c0da3f3dbd488b3125b3e Mon Sep 17 00:00:00 2001 From: Francesco Petrogalli Date: Wed, 14 Jun 2023 15:11:44 +0200 Subject: [PATCH] [MISched] Fix non-debug builds. As reported in https://github.com/llvm/llvm-project/issues/63225, we need to make sure we can use the `&operator<<` on instances of the `ResourceSegments` class for builds that set `NDEBUG`. Reviewed By: sylvestre.ledru Differential Revision: https://reviews.llvm.org/D152817 --- llvm/include/llvm/CodeGen/MachineScheduler.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/include/llvm/CodeGen/MachineScheduler.h b/llvm/include/llvm/CodeGen/MachineScheduler.h index bd3885d..c950a9a 100644 --- a/llvm/include/llvm/CodeGen/MachineScheduler.h +++ b/llvm/include/llvm/CodeGen/MachineScheduler.h @@ -815,7 +815,6 @@ public: const ResourceSegments &c2) { return c1._Intervals == c2._Intervals; } -#ifndef NDEBUG friend llvm::raw_ostream &operator<<(llvm::raw_ostream &os, const ResourceSegments &Segments) { os << "{ "; @@ -824,7 +823,6 @@ public: os << "}\n"; return os; } -#endif }; /// Each Scheduling boundary is associated with ready queues. It tracks the -- 2.7.4