[clang] [compiler-rt] [Clang][CodeGen] Report when an alias points to an incompatible target (PR #192397)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 17 11:12:04 PDT 2026
================
@@ -804,6 +804,48 @@ void CodeGenModule::checkAliases() {
continue;
}
+ if (!IsIFunc) {
+ // Function declarations can only alias functions (including IFUNCs).
+ // Similarly, variable declarations can only alias variables.
+ if (isa<FunctionDecl>(D) != isa<llvm::Function, llvm::GlobalIFunc>(GV)) {
----------------
efriedma-quic wrote:
Okay, I guess that's fine.
https://github.com/llvm/llvm-project/pull/192397
More information about the cfe-commits
mailing list