Skip to content

Commit a85c725

Browse files
committed
Revert "[Utils] Fix a warning"
This reverts commit 3a18fe3. So that we can revert PR #148758.
1 parent b383efc commit a85c725

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/Transforms/Utils/LoopUtils.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -815,14 +815,11 @@ struct DbgLoop {
815815
const Loop *L;
816816
explicit DbgLoop(const Loop *L) : L(L) {}
817817
};
818-
819-
#ifndef NDEBUG
820818
static inline raw_ostream &operator<<(raw_ostream &OS, DbgLoop D) {
821819
OS << "function ";
822820
D.L->getHeader()->getParent()->printAsOperand(OS, /*PrintType=*/false);
823821
return OS << " " << *D.L;
824822
}
825-
#endif // NDEBUG
826823

827824
static std::optional<unsigned> estimateLoopTripCount(Loop *L) {
828825
// Currently we take the estimate exit count only from the loop latch,

0 commit comments

Comments
 (0)