[Lldb-commits] [clang] [lldb] [llvm] [HLSL] Pack Intrinsics and related types (PR #224277)

Alexander Johnston via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 25 04:49:45 PDT 2026


================
@@ -2977,6 +2977,15 @@ bool CastOperation::CheckHLSLCStyleCast(CheckedConversionKind CCK) {
     return true;
   }
 
+  // HLSL includes packed data types that can be converted directly to uint
+  if (Self.HLSL().CanPerformPackedToUintCast(SrcExpr.get(), DestType)) {
+    SrcExpr = Self.ImpCastExprToType(
+        SrcExpr.get(), SrcExpr.get()->getType(), CK_IntegralCast,
+        SrcExpr.get()->getValueKind(), nullptr, CCK);
+    Kind = CK_IntegralCast;
----------------
Alexander-Johnston wrote:

`CanPerformPackedTypeCast ` has been updated to ensure those aren't allowed through

https://github.com/llvm/llvm-project/pull/224277


More information about the lldb-commits mailing list