[PATCH] D112059: Fix inline builtin handling in case of redefinition
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 26 16:21:05 PDT 2021
nickdesaulniers added inline comments.
================
Comment at: clang/test/CodeGen/user-func-gnu-inline-redecl.c:20
+ return some_size(s);
+}
----------------
this test passes before this patch is applied; I wonder if we have existing coverage in tree for this case?
Surprisingly, I don't think we do. Perhaps `gnu-inline-redecl.c` might be a more concise test name?
I can't help but shake the feeling that the builtin id stuff is a degenerate case of how GCC treats redeclarations of extern inline (gnu_inline) functions and that perhaps by solving just that, fixing the case of builtins might just "fall out" from that.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112059/new/
https://reviews.llvm.org/D112059
More information about the cfe-commits
mailing list