This is an archive of the discontinued LLVM Phabricator instance.

[CUDA][HIP] Fix overloading resolution of delete operator
ClosedPublic

Authored by yaxunl on Aug 1 2023, 7:18 AM.

Details

Summary

Currently clang does not consider host/device preference when resolving delete operator in the file scope, which causes device operator delete selected for class member initialization.

Diff Detail

Event Timeline

yaxunl created this revision.Aug 1 2023, 7:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 1 2023, 7:18 AM
Herald added a subscriber: mattd. · View Herald Transcript
yaxunl requested review of this revision.Aug 1 2023, 7:18 AM
tra accepted this revision.Aug 7 2023, 1:52 PM
This revision is now accepted and ready to land.Aug 7 2023, 1:52 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2023, 6:51 AM