[Openmp-commits] [PATCH] D105403: [OpenMP][iwyu] explicitly includes `<algorithm>` in CUDA rtl.cpp
Christopher Di Bella via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sat Jul 3 19:26:22 PDT 2021
cjdb created this revision.
Herald added subscribers: guansong, yaxunl.
cjdb requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.
Compiling with Clang modules and libc++ identified that rtl.cpp is using
`std::fill` without first including `<algorithm>`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D105403
Files:
openmp/libomptarget/plugins/cuda/src/rtl.cpp
Index: openmp/libomptarget/plugins/cuda/src/rtl.cpp
===================================================================
--- openmp/libomptarget/plugins/cuda/src/rtl.cpp
+++ openmp/libomptarget/plugins/cuda/src/rtl.cpp
@@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//
+#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cuda.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105403.356360.patch
Type: text/x-patch
Size: 405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210704/f0967ab6/attachment.bin>
More information about the Openmp-commits
mailing list