From: Dan Palermo Date: Thu, 22 Sep 2022 21:51:19 +0000 (+0000) Subject: [OpenMP][NFC] Fix wavesize build warning in OMPGridValues X-Git-Tag: upstream/17.0.6~32720 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44c734af9a9abac918eb450d9689bcac29f82ad7;p=platform%2Fupstream%2Fllvm.git [OpenMP][NFC] Fix wavesize build warning in OMPGridValues Differential Revision: https://reviews.llvm.org/D134459 --- diff --git a/llvm/include/llvm/Frontend/OpenMP/OMPGridValues.h b/llvm/include/llvm/Frontend/OpenMP/OMPGridValues.h index cd9f024..83d5ad8 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 constexpr const GV &getAMDGPUGridValues() { - static_assert(wavesize == 32 || wavesize == 64); + static_assert(wavesize == 32 || wavesize == 64, "Unexpected wavesize"); return wavesize == 32 ? AMDGPUGridValues32 : AMDGPUGridValues64; }