Skip to content

Commit e26756d

Browse files
maleadtKristofferC
authored andcommitted
Use a nonzero initial size with llvm::SmallSet.
(cherry picked from commit f1a87b6)
1 parent aa0e223 commit e26756d

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
@@ -241,7 +241,7 @@ struct jl_codegen_params_t {
241241
SmallVector<cfunc_decl_t,0> cfuncs;
242242
std::map<void*, GlobalVariable*> global_targets;
243243
jl_array_t *temporary_roots = nullptr;
244-
SmallSet<jl_value_t *, 0> temporary_roots_set;
244+
SmallSet<jl_value_t *, 8> temporary_roots_set;
245245
std::map<std::tuple<jl_code_instance_t*,bool>, GlobalVariable*> external_fns;
246246
std::map<jl_datatype_t*, DIType*> ditypes;
247247
std::map<jl_datatype_t*, Type*> llvmtypes;

0 commit comments

Comments
 (0)