Skip to content

Commit 927050a

Browse files
committed
[Polly] Fix -Wunused-function in -DLLVM_ENABLE_ASSERTIONS=off builds
1 parent af9f461 commit 927050a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

polly/lib/Transform/ScheduleOptimizer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,6 +1723,7 @@ class IslScheduleOptimizerWrapperPass : public ScopPass {
17231723

17241724
char IslScheduleOptimizerWrapperPass::ID = 0;
17251725

1726+
#ifndef NDEBUG
17261727
static void printSchedule(llvm::raw_ostream &OS, const isl::schedule &Schedule,
17271728
StringRef Desc) {
17281729
isl::ctx Ctx = Schedule.get_ctx();
@@ -1734,6 +1735,7 @@ static void printSchedule(llvm::raw_ostream &OS, const isl::schedule &Schedule,
17341735
free(Str);
17351736
isl_printer_free(P);
17361737
}
1738+
#endif
17371739

17381740
/// Collect statistics for the schedule tree.
17391741
///

0 commit comments

Comments
 (0)