[all-commits] [llvm/llvm-project] f4b56f: [HLSL][Sema] Reject unsupported vector swizzles (#...

Farzon Lotfi via All-commits all-commits at lists.llvm.org
Tue Sep 22 09:34:33 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f4b56fcef15f00cef6ca07d880092c8ab8c5155b
      https://github.com/llvm/llvm-project/commit/f4b56fcef15f00cef6ca07d880092c8ab8c5155b
  Author: Farzon Lotfi <farzonlotfi at microsoft.com>
  Date:   2026-09-22 (Tue, 22 Sep 2026)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaExprMember.cpp
    M clang/test/SemaHLSL/Types/BuiltinVector/ScalarSwizzleErrors.hlsl
    A clang/test/SemaHLSL/Types/invalid-longvec-swizzle.hlsl

  Log Message:
  -----------
  [HLSL][Sema] Reject unsupported vector swizzles (#225286)

fixes #216199

This started out as rejecting swizzles for long vectors. But it turns
out we did not remove opencl accessors so this change also does that.

HLSL vector swizzles are limited to the xyzw and rgba component sets and
vectors of up to four elements.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list