llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.

Results 700 llvm-project issues
Sort by recently updated
recently updated
newest added

Hi all, I just discovered that the implementation of GNU statement expressions differs from GCC in C++ mode. The following C++ code compiles in GCC but not in Clang: ```cpp...

clang:frontend

When InstCombine sees an addition of two sign-extended values and can prove that the addition won't overflow if done with the original width, it transforms the code to perform the...

llvm:SLPVectorizer

Clang fails on this code with ```-std=c++20```: ```c++ template T nnn() { return 0; } void x() { nnn(); } ``` error: ```console testcase.cpp:8:2: error: no matching function for call...

c++20
clang:frontend

For a given code in `foo.c` file ```c int foo() { some_type *bar; } ``` `clang` gives a cascade of confusing diagnostics: ```console foo.c:2:3: error: use of undeclared identifier 'some_type'...

clang:diagnostics

Consider this C++17 code, which compiles fine with GCC but fails with Clang (at least Clang 9 to Clang 15). It is an MWE that I condensed from GCC's STL...

clang:frontend
rejects-valid

It seems like `ld.lld` will accept armeb input files, but proceeds to handle the relocations in little-endian (?) and silently produces invalid encodings for branches: ```console $ clang --target=armebv5te-none-eabi -mcpu=arm926ej-s...

lld:ELF

| | | | --- | --- | | Bugzilla Link | [34742](https://llvm.org/bz34742) | | Version | unspecified | | OS | Linux | | CC | @DougGregor | ##...

c++11
clang:frontend
bugzilla

Clang supports `-u` as a linker flag that accepts an argument: https://github.com/llvm/llvm-project/blob/aa5bc41b765694696ff05c3448247f7525577657/clang/include/clang/Driver/Options.td#L4258 Clang handles that option as a `JoinedOrSeparate` option which means that there does not need to be whitespace...

clang:driver
clang:diagnostics

Failing to build on apt.llvm.org - linux ```console -- LIBOMPTARGET: Building the llvm-omp-device-info tool -- Configuring done CMake Error at /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-snapshot_16~++20221007093751+a6a0d9ecd5d7/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt:92 (add_dependencies): The dependency target "omptarget.devicertl.amdgpu" of target "omptarget.rtl.amdgpu" does...

openmp
build-problem

Here's a slightly modified version of a function found in the LLVM test suite: ```llvm define i32 @f(i32 %0) { %2 = ashr i32 %0, 32 %3 = freeze i32...

backend:AArch64
llvm:codegen
miscompilation