[CUDA] Ignore uncallable functions when we check for usual deallocators.
authorArtem Belevich <tra@google.com>
Fri, 21 Sep 2018 17:29:33 +0000 (17:29 +0000)
committerArtem Belevich <tra@google.com>
Fri, 21 Sep 2018 17:29:33 +0000 (17:29 +0000)
commit78929efb4dcbb2c8aeba46eee912a614d4ecebb9
treed8ae6e44b0267bf826d68a01e9ad339e984d9cc0
parenta3d0f409647a2051c1cd1546c48369f9f9ce3f27
[CUDA] Ignore uncallable functions when we check for usual deallocators.

Previously clang considered function variants from both sides of
compilation and that resulted in picking up wrong deallocation function.

Differential Revision: https://reviews.llvm.org/D51808

llvm-svn: 342749
clang/include/clang/AST/DeclCXX.h
clang/include/clang/Sema/Sema.h
clang/lib/AST/DeclCXX.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/test/CodeGenCUDA/usual-deallocators.cu [new file with mode: 0644]
clang/test/SemaCUDA/call-host-fn-from-device.cu
clang/test/SemaCUDA/usual-deallocators.cu [new file with mode: 0644]