[OpenMP] Guard the code if ITT is not used
authorShilei Tian <i@tianshilei.me>
Fri, 3 Feb 2023 03:54:25 +0000 (22:54 -0500)
committerShilei Tian <i@tianshilei.me>
Fri, 3 Feb 2023 03:54:34 +0000 (22:54 -0500)
commit2d6adb366e8b97988c0b105d4cf61c233ee95c12
tree70e50e522bac6e65a5da21fb1daefc46fb0050ba
parent54cf69c9d54e8a6dda40112489b52d05f2c946f3
[OpenMP] Guard the code if ITT is not used

`check_loc` is not used if ITT is disabled or debug is off, causing a
compiler warning.

Reviewed By: jlpeyton

Differential Revision: https://reviews.llvm.org/D143004
openmp/runtime/src/kmp_sched.cpp