| commit | 0a1274224ef8928507b8e50c19ea25e62a7a3bf3 | [log] [tgz] |
|---|---|---|
| author | Jan Kokemüller <jan.kokemueller@gmail.com> | Mon Oct 30 19:56:03 2023 +0100 |
| committer | Tobias Hieta <tobias@hieta.se> | Tue Nov 14 09:22:23 2023 +0100 |
| tree | 7af37d270927405c8611bd9ca79cf7dd1bb39707 | |
| parent | 42f8800b720fa4948155fed029200ba6aad01655 [diff] |
[libc++] Fix UB in <expected> related to "has value" flag (#68552) (#68733) The calls to std::construct_at might overwrite the previously set __has_value_ flag in the case where the flag is overlapping with the actual value or error being stored (since we use [[no_unique_address]]). To fix this issue, this patch ensures that we initialize the __has_value_ flag after we call std::construct_at. Fixes #68552 (cherry picked from commit 134c91595568ea1335b22e559f20c1a488ea270e)
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, or #llvm IRC channel on OFTC.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.