59012b6 [CUDA] Another attempt to fix early inclusion of <new> from libstdc++

1 file Authored by Artem Belevich 3 years ago, Committed by tstellar 3 years ago,
    [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
    
    (cherry picked from commit 43267929423bf768bbbcc65e47a07e37af7f4e22)