[all-commits] [llvm/llvm-project] 3efad6: [HLSL] Pointers are unsupported in HLSL

Chris B via All-commits all-commits at lists.llvm.org
Thu Apr 14 11:33:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3efad612d234f938d5012317cfb827e2bf8a1ee7
      https://github.com/llvm/llvm-project/commit/3efad612d234f938d5012317cfb827e2bf8a1ee7
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2022-04-14 (Thu, 14 Apr 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaExprMember.cpp
    M clang/lib/Sema/SemaType.cpp
    A clang/test/SemaHLSL/prohibit_pointer.hlsl
    A clang/test/SemaHLSL/prohibit_reference.hlsl

  Log Message:
  -----------
  [HLSL] Pointers are unsupported in HLSL

HLSL does not support pointers or references. This change generates
errors in sema for generating pointer, and reference types as well as
common operators (address-of, dereference, arrow), which are used with
pointers and are unsupported in HLSL.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D123167




More information about the All-commits mailing list