[all-commits] [llvm/llvm-project] 2b7509: [clang][SME] Account for C++ lambdas in SME builti...

Benjamin Maxwell via All-commits all-commits at lists.llvm.org
Thu Jan 30 00:55:56 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b7509e9885c9a5656bb3c201421e146a21fb88e
      https://github.com/llvm/llvm-project/commit/2b7509e9885c9a5656bb3c201421e146a21fb88e
  Author: Benjamin Maxwell <benjamin.maxwell at arm.com>
  Date:   2025-01-30 (Thu, 30 Jan 2025)

  Changed paths:
    M clang/lib/Sema/SemaARM.cpp
    R clang/test/Sema/aarch64-incompat-sm-builtin-calls.c
    A clang/test/Sema/aarch64-incompat-sm-builtin-calls.cpp

  Log Message:
  -----------
  [clang][SME] Account for C++ lambdas in SME builtin diagnostics (#124750)

A C++ lambda does not inherit attributes from the parent function. So
the SME builtin diagnostics should look at the lambda's attributes, not
the parent function's.

The fix is very simple and just adds the missing "AllowLambda" flag to
the function decl lookups.



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