[clang] 6707a7d - [CUDA] remove unneeded includes from CUDA-related headers.
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 6 17:24:18 PDT 2021
Author: Artem Belevich
Date: 2021-10-06T17:20:21-07:00
New Revision: 6707a7d7e96ac23ba66f16bdb44927082d2fd4d3
URL: https://github.com/llvm/llvm-project/commit/6707a7d7e96ac23ba66f16bdb44927082d2fd4d3
DIFF: https://github.com/llvm/llvm-project/commit/6707a7d7e96ac23ba66f16bdb44927082d2fd4d3.diff
LOG: [CUDA] remove unneeded includes from CUDA-related headers.
This should fix bot failures on PPC and windows.
Added:
Modified:
clang/lib/Headers/__clang_cuda_texture_intrinsics.h
clang/test/Headers/Inputs/include/cuda.h
Removed:
################################################################################
diff --git a/clang/lib/Headers/__clang_cuda_texture_intrinsics.h b/clang/lib/Headers/__clang_cuda_texture_intrinsics.h
index eb50776d3fca5..3c0f0026f1f02 100644
--- a/clang/lib/Headers/__clang_cuda_texture_intrinsics.h
+++ b/clang/lib/Headers/__clang_cuda_texture_intrinsics.h
@@ -17,8 +17,6 @@
#error "This file is for CUDA compilation only."
#endif
-#include <type_traits>
-
// __nv_tex_surf_handler() provided by this header as a macro.
#define __nv_tex_surf_handler(__op, __ptr, ...) \
::__cuda_tex::__tex_fetch< \
diff --git a/clang/test/Headers/Inputs/include/cuda.h b/clang/test/Headers/Inputs/include/cuda.h
index 7e93a9d361db7..d84029759c165 100644
--- a/clang/test/Headers/Inputs/include/cuda.h
+++ b/clang/test/Headers/Inputs/include/cuda.h
@@ -1,8 +1,6 @@
/* Minimal declarations for CUDA support. Testing purposes only. */
#pragma once
-#include <stddef.h>
-
// Make this file work with nvcc, for testing compatibility.
#ifndef __NVCC__
More information about the cfe-commits
mailing list