Manual-sync mirror of chromium.googlesource.com/external/github.com/llvm/llvm-project (bare monorepo, no subtree suffix)
Find a file
William Tran-Viet ca7933e47d
[libc++] Disable mistakenly enabled optional<T&> constructors for optional<T> (#194446)
Resolves #194415

- A constructor specifically meant for `optional<T&>` was left enabled
for `optional<T>`
- Fix it, and add a test to check for regression.
- This patch also corrects the constraints for `optional(optional<U>&)`
and `optional(const optional<U>&)` , as they were incorrectly
disallowing [valid conversions](https://godbolt.org/z/1r5Ea7z5M)
- Also, correct the `noexcept` specification.
- Add tests for both corrections.

(cherry picked from commit 239189ca28)
2026-06-15 22:33:53 +00:00
.ci [green dragon] add stage1-RA job to release/22.x 2026-03-06 18:42:38 +00:00
.github workflows/release-binaries: Pass missing release-version input to upload-release-artifact (#180879) 2026-02-16 09:01:46 +00:00
bolt [BOLT] Avoid UB due to misaligned access. (#174990) 2026-01-10 03:45:13 +00:00
clang [CMake][Release] Use llvm-bitcode-strip on Darwin for build with -ffat-lto-objects (#200764) 2026-06-04 06:24:34 +00:00
clang-tools-extra [clang-tidy] Add note about removal of hicpp module 2026-04-28 12:08:38 +08:00
cmake Bump version to 22.1.8 2026-06-02 06:58:49 +00:00
compiler-rt [compiler-rt][sanitizer] Remove linux/scc.h (#194116) 2026-04-28 03:29:14 +00:00
cross-project-tests [TEST][FIX] Fix typo in tool name: 'llvm-ar' 2026-02-18 08:19:19 +00:00
flang [Flang] Fix lowering failure for some constructs inside a CHANGE TEAM (#184342) 2026-04-06 18:30:01 +00:00
flang-rt [flang-rt] Fix system_clock scaling on MacOS (#176753) 2026-01-23 07:36:09 +00:00
libc [libc] Demote compiler check error to a warning (#198033) 2026-05-26 08:51:44 +00:00
libclc [Backport][Clang] Rename uinc_wrap and add normal atomic builtin 2026-02-05 08:04:18 +00:00
libcxx [libc++] Disable mistakenly enabled optional<T&> constructors for optional<T> (#194446) 2026-06-15 22:33:53 +00:00
libcxxabi [libc++][NFC] Refactor _LIBCPP_OVERRIDABLE_FUNCTION to be a normal attribute macro (#174964) 2026-01-09 12:07:42 +01:00
libsycl [libsycl] fix license link in README.md. 2025-12-01 16:34:37 -05:00
libunwind [libunwind] fix build errors on x32 and mips n32 (#194310) 2026-05-04 16:55:02 +00:00
lld [LLD][ELF] Add missing initialization of Symbol used member. 2026-06-10 17:50:22 +00:00
lldb build: adjust LLDB and clang library naming on Windows (#185084) 2026-05-26 08:56:36 +00:00
llvm [WebAssembly] narrow instructions use signed saturation (#201798) 2026-06-15 17:41:49 +00:00
llvm-libgcc
mlir [MLIR][SCFToOpenMP] Fix crash when lowering vector reductions (#173978) 2026-01-15 09:49:53 +00:00
offload [NFC][Offload] Rename a function (#175673) 2026-01-12 19:40:17 -06:00
openmp [libc] Demote compiler check error to a warning (#198033) 2026-05-26 08:51:44 +00:00
orc-rt [orc-rt] Add Maintainers.md. (#175691) 2026-01-13 12:08:27 +11:00
polly [Polly][ScopInfo] Lazy Scop instantiation (#179535) 2026-02-23 08:31:55 +00:00
runtimes [libc++] Enable -Wmissing-prototypes (#116261) 2025-12-16 11:25:07 +01:00
third-party [Benchmark] Fix warnings around usage of __COUNTER__ (#184524) 2026-03-05 14:33:27 +00:00
utils/bazel Fix Bazel build for e289b2e (#175642) 2026-01-12 15:52:31 -05:00
.clang-format Enforce Unix line endings for Clang/LLVM/MLIR projects (#161460) 2025-10-02 06:09:12 -07:00
.clang-format-ignore Add empty top level .clang-format-ignore (#136022) 2025-04-16 15:48:30 -07:00
.clang-tidy Add default empty header filter regex to root .clang-tidy (#167386) 2025-11-11 01:36:25 +03:00
.git-blame-ignore-revs [clang-tidy][NFC] Add clang-tidy formatting commit to .git-blame-ignore-revs (#167126) 2025-11-20 21:42:10 +08:00
.gitattributes [libclang/python] Enable packaging clang python bindings (#125806) 2025-11-24 17:21:24 -08:00
.gitignore [LLVM] Ignore two Cursor specific files. (#175683) 2026-01-13 02:27:05 +01:00
.mailmap [mailmap] Update my name 2025-04-14 16:54:14 +08:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md [www][docs] Remove last mentions of IRC (#139076) 2025-05-08 09:40:33 -04:00
LICENSE.TXT
pyproject.toml [lldb] Configure pyright to the documented minimum python version (#162952) 2025-11-20 10:30:22 -08:00
README.md
SECURITY.md

The LLVM Compiler Infrastructure

OpenSSF Scorecard OpenSSF Best Practices libc++

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.

Getting the Source Code and Building LLVM

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.

Getting in touch

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.