[llvm] 44c734a - [OpenMP][NFC] Fix wavesize build warning in OMPGridValues
Dan Palermo via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 22 14:54:24 PDT 2022
Author: Dan Palermo
Date: 2022-09-22T21:53:59Z
New Revision: 44c734af9a9abac918eb450d9689bcac29f82ad7
URL: https://github.com/llvm/llvm-project/commit/44c734af9a9abac918eb450d9689bcac29f82ad7
DIFF: https://github.com/llvm/llvm-project/commit/44c734af9a9abac918eb450d9689bcac29f82ad7.diff
LOG: [OpenMP][NFC] Fix wavesize build warning in OMPGridValues
Differential Revision: https://reviews.llvm.org/D134459
Added:
Modified:
llvm/include/llvm/Frontend/OpenMP/OMPGridValues.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Frontend/OpenMP/OMPGridValues.h b/llvm/include/llvm/Frontend/OpenMP/OMPGridValues.h
index cd9f02484be22..83d5ad83c82b0 100644
--- a/llvm/include/llvm/Frontend/OpenMP/OMPGridValues.h
+++ b/llvm/include/llvm/Frontend/OpenMP/OMPGridValues.h
@@ -100,7 +100,7 @@ static constexpr GV AMDGPUGridValues32 = {
};
template <unsigned wavesize> constexpr const GV &getAMDGPUGridValues() {
- static_assert(wavesize == 32 || wavesize == 64);
+ static_assert(wavesize == 32 || wavesize == 64, "Unexpected wavesize");
return wavesize == 32 ? AMDGPUGridValues32 : AMDGPUGridValues64;
}
More information about the llvm-commits
mailing list