[PATCH] D134459: [OpenMP][NFC] Fix wavesize build warning in OMPGridValues
Dan Palermo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 22 10:40:54 PDT 2022
dpalermo created this revision.
dpalermo added reviewers: dpalermo, JonChesterfield, ronlieb.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
dpalermo requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.
This patch fixes a C++17 warning seen when building the OpenMP runtime.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D134459
Files:
llvm/include/llvm/Frontend/OpenMP/OMPGridValues.h
Index: llvm/include/llvm/Frontend/OpenMP/OMPGridValues.h
===================================================================
--- llvm/include/llvm/Frontend/OpenMP/OMPGridValues.h
+++ llvm/include/llvm/Frontend/OpenMP/OMPGridValues.h
@@ -100,7 +100,7 @@
};
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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134459.462236.patch
Type: text/x-patch
Size: 533 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220922/57a6c8a1/attachment.bin>
More information about the llvm-commits
mailing list