Skip to content

Commit f8defa4

Browse files
authored
Fix -Wnon-c-typedef-for-linkage from jl_codegen_params_t (#43187)
Currently `jl_codegen_params_t` is defined as `typedef struct {...}` without a tag name. If we give it an underscore-prefixed tag name (as is the convention used in our other type declarations), Clang will stop complaining about having to assume what the name should be for linkage.
1 parent 3f3632c commit f8defa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jitlayers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct jl_returninfo_t {
5252
typedef std::vector<std::tuple<jl_code_instance_t*, jl_returninfo_t::CallingConv, unsigned, llvm::Function*, bool>> jl_codegen_call_targets_t;
5353
typedef std::tuple<std::unique_ptr<Module>, jl_llvm_functions_t> jl_compile_result_t;
5454

55-
typedef struct {
55+
typedef struct _jl_codegen_params_t {
5656
typedef StringMap<GlobalVariable*> SymMapGV;
5757
// outputs
5858
jl_codegen_call_targets_t workqueue;

0 commit comments

Comments
 (0)