[all-commits] [llvm/llvm-project] 715edd: [HLSL] Allow arrays to copy-initialize (#127557)

Chris B via All-commits all-commits at lists.llvm.org
Tue Feb 18 18:13:45 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 715edd70fdbda213668b55405c27c63292516fba
      https://github.com/llvm/llvm-project/commit/715edd70fdbda213668b55405c27c63292516fba
  Author: Chris B <chris.bieneman at me.com>
  Date:   2025-02-18 (Tue, 18 Feb 2025)

  Changed paths:
    M clang/lib/Sema/SemaCast.cpp
    M clang/lib/Sema/SemaInit.cpp
    A clang/test/SemaHLSL/Language/AssignArray.hlsl
    M clang/test/SemaHLSL/Language/ElementwiseCast-errors.hlsl

  Log Message:
  -----------
  [HLSL] Allow arrays to copy-initialize (#127557)

This change allows array variables to copy-initialize from other arrays.
It also corrects a small error in HLSL C-Style casting that did not
error on casting to arrays if elementwise and splat conversions fail.

Fixes #127551



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