[all-commits] [llvm/llvm-project] af8e57: [CIR] Fixup type of no-prototype functions when em...
Erich Keane via All-commits
all-commits at lists.llvm.org
Thu Jul 30 10:11:17 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: af8e570d9009f398473813e8af7e617d40d87199
https://github.com/llvm/llvm-project/commit/af8e570d9009f398473813e8af7e617d40d87199
Author: Erich Keane <ekeane at nvidia.com>
Date: 2026-07-30 (Thu, 30 Jul 2026)
Changed paths:
M clang/lib/CIR/CodeGen/CIRGenModule.cpp
A clang/test/CIR/CodeGen/attr-alias-no-proto.c
Log Message:
-----------
[CIR] Fixup type of no-prototype functions when emitting an alias. (#212308)
If a function is first used through a no-prototype declaration, then
defined later as an alias, we erased the old declaration and created the
new one with the new type. However the earlier references still used the
old type, which caused a verification error.
This patch just makes sure we replace the uses of it similar to how we
do with a similar problem with normal functions.
Note: there is a bit of inconsistency in how we're setting the type of
the function between OGCG and CIR that I'm not sure of the impact of,
but that is prexisting.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list