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

Benjamin Maxwell via All-commits all-commits at lists.llvm.org
Fri Jan 31 21:01:12 PST 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c142b23aef0beae9697eb1b10e9f6d954223794
      https://github.com/llvm/llvm-project/commit/2c142b23aef0beae9697eb1b10e9f6d954223794
  Author: Benjamin Maxwell <benjamin.maxwell at arm.com>
  Date:   2025-01-31 (Fri, 31 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.

(cherry picked from commit 2b7509e9885c9a5656bb3c201421e146a21fb88e)



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