This fixes compiler crash when we attempted to compile this code:
extern __device__ int data; __device__ int data = 1;
Paths
| Differential D56033
[CUDA] Treat extern global variable shadows same as regular extern vars. ClosedPublic Authored by tra on Dec 21 2018, 3:54 PM.
Details Summary This fixes compiler crash when we attempted to compile this code: extern __device__ int data; __device__ int data = 1;
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Dec 21 2018, 4:05 PM Closed by commit rL349981: [CUDA] Treat extern global variable shadows same as regular extern vars. (authored by tra). · Explain WhyDec 21 2018, 5:14 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 179387 clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGenCUDA/device-stub.cu
|
definiitions