This is an archive of the discontinued LLVM Phabricator instance.

clang: Fix cast failure when using -fsanitize=undefined for HIP
ClosedPublic

Authored by arsenm on Nov 21 2022, 8:09 AM.

Details

Summary

This was assuming a direct reference to the global variable. The
constant string is placed in addrspace 4, and has a constexpr
addrspacecast to the generic address space.

Diff Detail

Event Timeline

arsenm created this revision.Nov 21 2022, 8:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 21 2022, 8:09 AM
Herald added a subscriber: arichardson. · View Herald Transcript
arsenm requested review of this revision.Nov 21 2022, 8:09 AM
yaxunl accepted this revision.Nov 28 2022, 2:22 PM

LGTM. Thanks.

This revision is now accepted and ready to land.Nov 28 2022, 2:22 PM