Skip to content

Commit 75d9db5

Browse files
committed
change comment
1 parent 8c85c82 commit 75d9db5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/AST/Type.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ bool Qualifiers::isTargetAddressSpaceSupersetOf(LangAS A, LangAS B,
9494
(A == LangAS::Default &&
9595
(B == LangAS::cuda_constant || B == LangAS::cuda_device ||
9696
B == LangAS::cuda_shared)) ||
97-
// Default is a superset of HLSL private.
97+
// `this` overloading depending on address space is not ready,
98+
// so this is a hack to allow generating addrspacecasts.
99+
// IR legalization will be required when this address space is used.
98100
(A == LangAS::Default && B == LangAS::hlsl_private) ||
99101
// Conversions from target specific address spaces may be legal
100102
// depending on the target information.

0 commit comments

Comments
 (0)