[all-commits] [llvm/llvm-project] fbad71: [OpenCL] Diagnose invalid conversion from pointer ...

Wenju He via All-commits all-commits at lists.llvm.org
Tue Feb 10 20:31:39 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fbad717b9a09af5abafbeba859646d1ab05213d5
      https://github.com/llvm/llvm-project/commit/fbad717b9a09af5abafbeba859646d1ab05213d5
  Author: Wenju He <wenju.he at intel.com>
  Date:   2026-02-11 (Wed, 11 Feb 2026)

  Changed paths:
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/SemaOpenCL/invalid-vector-literals.cl

  Log Message:
  -----------
  [OpenCL] Diagnose invalid conversion from pointer to vector (#180318)

Fix crash in clang PrepareScalarCast when compiling OpenCL source: void
foo() {
  int a[3] = {1, 2, 3};
  int3 b = (int3)(a);
}

PrepareScalarCast requires scalar src, but the provided src is a
pointer.

Resolves https://github.com/intel/compute-runtime/issues/888



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