[clang] [CIR] Fixup type of no-prototype functions when emitting an alias. (PR #212308)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 30 06:36:09 PDT 2026
================
@@ -49,6 +67,18 @@ extern void weak_func_alias(void) __attribute__((weak, alias("weak_func_target")
// CIR-DAG: cir.func weak @weak_func_alias() alias(@weak_func_target)
// CIR-DAG: cir.func dso_local @test13_alias(!u32i) alias(@test13)
+// CIR-DAG: cir.get_global @noproto_used : !cir.ptr<!cir.func<() -> !s32i>>
----------------
erichkeane wrote:
Ok, I just decided to split the whole test out into its own file, it was getting way too confusing what was happening in that file with everything else around it.
Note that I mentioned it in the commit message, but decided to capture the difference in our lowering of variadic functions here: https://github.com/llvm/llvm-project/issues/213024
I expect whoever fixes that will be able to get the OGCG out of this test.
https://github.com/llvm/llvm-project/pull/212308
More information about the cfe-commits
mailing list