commit | 6d00c4297f6714c03ab10f57c10063ebd79264a1 | [log] [tgz] |
---|---|---|
author | Corentin Jabot <corentinjabot@gmail.com> | Thu Jul 10 00:21:09 2025 +0300 |
committer | GitHub <noreply@github.com> | Thu Jul 10 00:21:09 2025 +0300 |
tree | 678513a76bea6ef05dbefabb9cd46fe36f829e09 | |
parent | 16f046281bf1a11d344eac1bc44d11f3e50e3b5d [diff] |
[Clang] Do not skip over `RequiresExprBodyDecl` when creating lambdas (#147764) When we create a lambda, we would skip over declaration contexts representing a require expression body, which would lead to wrong lookup. Note that I wasn't able to establish why the code in `Sema::createLambdaClosureType` was there to begin with (it's not exactly recent) The changes to mangling only ensure the status quo is preserved and do not attempt to address the known issues of mangling lambdas in require clauses. In particular the itanium mangling is consistent with Clang before this patch but differs from GCC's. Fixes #147650
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.