[all-commits] [llvm/llvm-project] 432679: [CUDA] Another attempt to fix early inclusion of <...
Artem Belevich via All-commits
all-commits at lists.llvm.org
Fri Dec 4 12:04:36 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 43267929423bf768bbbcc65e47a07e37af7f4e22
https://github.com/llvm/llvm-project/commit/43267929423bf768bbbcc65e47a07e37af7f4e22
Author: Artem Belevich <tra at google.com>
Date: 2020-12-04 (Fri, 04 Dec 2020)
Changed paths:
M clang/lib/Headers/cuda_wrappers/new
Log Message:
-----------
[CUDA] Another attempt to fix early inclusion of <new> from libstdc++
Previous patch (9a465057a64dba) did not fix the problem.
https://bugs.llvm.org/show_bug.cgi?id=48228
If the <new> is included too early, before CUDA-specific defines are available,
just include-next the standard <new> and undo the include guard. CUDA-specific
variants of operator new/delete will be declared if/when <new> is used from the
CUDA source itself, when all CUDA-related macros are available.
Differential Revision: https://reviews.llvm.org/D91807
More information about the All-commits
mailing list