Skip to content

Commit bb367c1

Browse files
[polly] Fix unused variable warnings
This patch fixes: polly/lib/Transform/ScheduleOptimizer.cpp:935:17: error: unused variable 'File' [-Werror,-Wunused-variable] polly/lib/Transform/ScheduleOptimizer.cpp:936:9: error: unused variable 'Line' [-Werror,-Wunused-variable] polly/lib/Transform/ScheduleOptimizer.cpp:937:17: error: unused variable 'Msg' [-Werror,-Wunused-variable]
1 parent ce5dac6 commit bb367c1

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

polly/lib/Transform/ScheduleOptimizer.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -932,13 +932,14 @@ static void runIslScheduleOptimizer(
932932
POLLY_DEBUG(dbgs() << "Schedule optimizer calculation exceeds ISL quota\n");
933933
return;
934934
} else if (isl_ctx_last_error(Ctx) != isl_error_none) {
935-
const char *File = isl_ctx_last_error_file(Ctx);
936-
int Line = isl_ctx_last_error_line(Ctx);
937-
const char *Msg = isl_ctx_last_error_msg(Ctx);
938-
POLLY_DEBUG(
939-
dbgs()
940-
<< "ISL reported an error during the computation of a new schedule at "
941-
<< File << ":" << Line << ": " << Msg);
935+
POLLY_DEBUG({
936+
const char *File = isl_ctx_last_error_file(Ctx);
937+
int Line = isl_ctx_last_error_line(Ctx);
938+
const char *Msg = isl_ctx_last_error_msg(Ctx);
939+
dbgs() << "ISL reported an error during the computation of a new "
940+
"schedule at "
941+
<< File << ":" << Line << ": " << Msg;
942+
});
942943
isl_ctx_reset_error(Ctx);
943944
return;
944945
} else if (Schedule.is_null()) {

0 commit comments

Comments
 (0)