================
@@ -1000,13 +1000,9 @@ void Sema::checkCUDATargetOverload(FunctionDecl *NewFD,
// should have the same implementation on both sides.
if (NewTarget != OldTarget &&
((NewTarget == CFT_HostDevice &&
- !(LangOpts.OffloadImplicitHostDeviceTemplates &&
- isCUDAImplicitHostDeviceFunction(NewFD) &&
- OldTarget == CFT_Device)) ||
+ !isCUDAImplicitHostDeviceFunction(NewFD)) ||
----------------
yxsamliu wrote:
actually we do not need this part of change to fix this issue, since this part
only affects overloading. As we fixed the overloading/overriding
differentiation, this part is not needed. I have removed this part in the
updated change.
https://github.com/llvm/llvm-project/pull/72815
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits