2 Commits

Author SHA1 Message Date
Fangrui Song
1c2afbae9a [CodeGen,test] Test llvm-libc style alias attribute with UsingShadowDecl
The pattern is quite involved and deserves a specific codegen test.
This test would catch the bug in the first attempt of #87130
2024-04-16 11:05:45 -07:00
Dhruv Chawla
9306ef9750 [clang][alias|ifunc]: Add a diagnostic for mangled names
When an alias or ifunc attribute refers to a function name that is
mangled, a diagnostic is emitted to suggest the mangled name as a
replacement for the given function name for every matching name in the
current TU.

Fixes #59164

Differential Revision: https://reviews.llvm.org/D143803
2023-03-06 08:59:02 -08:00