| commit | c43f828d59672b4844a7409e4660b9f8f509da35 | [log] [tgz] |
|---|---|---|
| author | Corentin Jabot <corentinjabot@gmail.com> | Sat Jul 19 20:30:16 2025 +0300 |
| committer | GitHub <noreply@github.com> | Sat Jul 19 19:30:16 2025 +0200 |
| tree | 7c30b8a884c12611ed53c41c3dd66f1e2dc16811 | |
| parent | 1fcf49a35c4ffce2c0a8baf8a045c031f783ccff [diff] |
[Clang] Be less strict about diagnosing null pointer dereference. (#149648) In #143667, we made constant evaluation fail on `*null_ptr`, as this is UB. However, `&(*(foo*)0)` seems to be a common pattern, which made #143667 too disruptive. So instead of failing the evaluation, we note the UB, which let clang recovers when checking for constant initialization. Fixes #149500
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.