Skip to content

Commit 68ba7b6

Browse files
authored
Use a nonzero initial size with llvm::SmallSet. (#58399)
1 parent 0e95093 commit 68ba7b6

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
@@ -246,7 +246,7 @@ struct jl_codegen_params_t {
246246
SmallVector<cfunc_decl_t,0> cfuncs;
247247
std::map<void*, GlobalVariable*> global_targets;
248248
jl_array_t *temporary_roots = nullptr;
249-
SmallSet<jl_value_t *, 0> temporary_roots_set;
249+
SmallSet<jl_value_t *, 8> temporary_roots_set;
250250
std::map<std::tuple<jl_code_instance_t*,bool>, GlobalVariable*> external_fns;
251251
std::map<jl_datatype_t*, DIType*> ditypes;
252252
std::map<jl_datatype_t*, Type*> llvmtypes;

0 commit comments

Comments
 (0)