forked from OSchip/llvm-project
a461174cfd
ShouldDeleteSpecialMember is called upon inherited constructors. It calls inferCUDATargetForImplicitSpecialMember. Normally the special member enum passed to ShouldDeleteSpecialMember matches the constructor. However this is not true when inherited constructor is passed, where DefaultConstructor is passed to treat the inherited constructor as DefaultConstructor. However inferCUDATargetForImplicitSpecialMember expects the special member enum argument to match the constructor, which results in assertion when this expection is not satisfied. This patch checks whether the constructor is inherited. If true it will get the real special member enum for the constructor and pass it to inferCUDATargetForImplicitSpecialMember. Differential Revision: https://reviews.llvm.org/D51809 llvm-svn: 344057 |
||
---|---|---|
.. | ||
Inputs | ||
add-inline-in-definition.cu | ||
addr-of-overloaded-fn.cu | ||
alias.cu | ||
amdgpu-attrs.cu | ||
asm-constraints-device.cu | ||
asm-constraints-mixed.cu | ||
attr-declspec.cu | ||
attributes-on-non-cuda.cu | ||
bad-attributes.cu | ||
bad-calls-on-same-line.cu | ||
builtins.cu | ||
call-device-fn-from-host.cu | ||
call-host-fn-from-device.cu | ||
call-stack-for-deferred-err.cu | ||
config-type.cu | ||
cuda-builtin-vars.cu | ||
cuda-inherits-calling-conv.cu | ||
cxx11-kernel-call.cu | ||
device-var-init.cu | ||
error-includes-mode.cu | ||
exceptions.cu | ||
extern-shared.cu | ||
function-overload.cu | ||
function-target.cu | ||
function-template-overload.cu | ||
global-initializers-host.cu | ||
gnu-inline.cu | ||
host-device-constexpr.cu | ||
implicit-copy.cu | ||
implicit-device-lambda.cu | ||
implicit-intrinsic.cu | ||
implicit-member-target-collision-cxx11.cu | ||
implicit-member-target-collision.cu | ||
implicit-member-target-inherited.cu | ||
implicit-member-target.cu | ||
inherited-ctor.cu | ||
kernel-call.cu | ||
launch_bounds.cu | ||
lit.local.cfg | ||
method-target.cu | ||
no-call-stack-for-immediate-errs.cu | ||
no-destructor-overload.cu | ||
no-host-device-constexpr.cu | ||
overloaded-delete.cu | ||
pr27778.cu | ||
qualifiers.cu | ||
reference-to-kernel-fn.cu | ||
trace-through-global.cu | ||
usual-deallocators.cu | ||
vararg.cu | ||
vla.cu |