diff options
author | Artem Belevich <tra@google.com> | 2021-01-14 16:05:33 -0800 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2021-01-21 10:48:07 -0800 |
commit | 127091bfd5edf10495fee4724fd21c666e5d79c1 (patch) | |
tree | b24b3c3938d65e1a119b6f6a4676e68ae28a297b /llvm/unittests/ADT/SmallVectorTest.cpp | |
parent | a75840a09c65582e3ec4eb1654bd17386b71397d (diff) | |
download | llvm-127091bfd5edf10495fee4724fd21c666e5d79c1.zip llvm-127091bfd5edf10495fee4724fd21c666e5d79c1.tar.gz llvm-127091bfd5edf10495fee4724fd21c666e5d79c1.tar.bz2 |
[CUDA] Normalize handling of defauled dtor.
Defaulted destructor was treated inconsistently, compared to other
compiler-generated functions.
When Sema::IdentifyCUDATarget() got called on just-created dtor which didn't
have implicit __host__ __device__ attributes applied yet, it would treat it as a
host function. That happened to (sometimes) hide the error when dtor referred
to a host-only functions.
Even when we had identified defaulted dtor as a HD function, we still treated it
inconsistently during selection of usual deallocators, where we did not allow
referring to wrong-side functions, while it is allowed for other HD functions.
This change brings handling of defaulted dtors in line with other HD functions.
Differential Revision: https://reviews.llvm.org/D94732
Diffstat (limited to 'llvm/unittests/ADT/SmallVectorTest.cpp')
0 files changed, 0 insertions, 0 deletions