[all-commits] [llvm/llvm-project] 707cc0: Sema: diagnose PMFs passed through registers to in...

Saleem Abdulrasool via All-commits all-commits at lists.llvm.org
Fri Dec 9 08:59:02 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 707cc06e1570b5966efcd6a9124191c80fa7a754
      https://github.com/llvm/llvm-project/commit/707cc06e1570b5966efcd6a9124191c80fa7a754
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2022-12-09 (Fri, 09 Dec 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaStmtAsm.cpp
    A clang/test/Sema/gnu-asm-pmf.cpp

  Log Message:
  -----------
  Sema: diagnose PMFs passed through registers to inline assembly

The itanium ABI represents the PMF as a pair of pointers.  As such the
structure cannot be passed through a single register.  Diagnose such
cases in the frontend rather than trying to generate IR to perform this
operation.

Fixes: 59033

Differential Revision: https://reviews.llvm.org/D13851
Reviewed By: aaron.ballman




More information about the All-commits mailing list