mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 04:56:07 +00:00

In the cross-DSO CFI mode clang emits __cfi_check_fail that handles errors triggered from other modules with targets in the current module. With this change, __cfi_check_fail will handle errors for CFI kinds that are not enabled in the current module as if they have the trapping behaviour (-fsanitize-trap=...). This fixes a bug where some combinations of -fsanitize* flags may result in a link failure due to a missing sanitizer runtime library for the diagnostic calls in __cfi_check_fail. llvm-svn: 263578
Description
The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
Languages
LLVM
39.9%
C++
32.5%
C
13.5%
Assembly
9.4%
MLIR
1.4%
Other
2.8%