
GCC's leaf attribute is lowered to LLVM IR nocallback attribute. Clang conservatively treats this function attribute as a hint on the module level, and removes it while linking modules. More context can be found in: https://reviews.llvm.org/D131628. Differential Revision: https://reviews.llvm.org/D137360
5 lines
86 B
LLVM
5 lines
86 B
LLVM
define void @test_nocallback_declaration_definition_linked_in() {
|
|
entry:
|
|
ret void
|
|
}
|