[Openmp-commits] [PATCH] D125339: [Libomptarget] Address existing warnings in the device runtime library

Johannes Doerfert via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue May 10 14:51:53 PDT 2022


jdoerfert accepted this revision.
jdoerfert added a comment.
This revision is now accepted and ready to land.

LG



================
Comment at: openmp/libomptarget/DeviceRTL/src/State.cpp:302
+template <typename IntTy> IntTy &lookupImpl(IntTy ICVStateTy::*Var) {
+  IntTy TId = mapping::getThreadIdInBlock();
   if (OMP_UNLIKELY(config::mayUseThreadStates() && ThreadStates[TId]))
----------------
This should always be 32, was a copy & paste error before.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125339/new/

https://reviews.llvm.org/D125339



More information about the Openmp-commits mailing list