Skip to content

Commit

Permalink
emit_sizeof emits an i32 not a size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
kpamnany committed Nov 16, 2023
1 parent 717300c commit fd3cc3a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -891,18 +891,18 @@ static const auto jlegalx_func = new JuliaFunction{
};
#ifdef JL_DISPATCH_LOG_BOXES
static const auto jllogboxinput_func = new JuliaFunction{
XSTR(jl_log_box_input),
[](LLVMContext &C) {
return FunctionType::get(getVoidTy(C), {getSizeTy(C)}, false);
},
nullptr,
XSTR(jl_log_box_input),
[](LLVMContext &C) {
return FunctionType::get(getVoidTy(C), {getInt32Ty(C)}, false);
},
nullptr,
};
static const auto jllogboxreturn_func = new JuliaFunction{
XSTR(jl_log_box_return),
[](LLVMContext &C) {
return FunctionType::get(getVoidTy(C), {getSizeTy(C)}, false);
},
nullptr,
XSTR(jl_log_box_return),
[](LLVMContext &C) {
return FunctionType::get(getVoidTy(C), {getInt32Ty(C)}, false);
},
nullptr,
};
#endif
static const auto jl_alloc_obj_func = new JuliaFunction{
Expand Down
4 changes: 2 additions & 2 deletions src/gc-alloc-profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ JL_DLLEXPORT void jl_set_extra_allocs_rate(float rate)
}

#ifdef JL_DISPATCH_LOG_BOXES
JL_DLLEXPORT void jl_log_box_input(size_t sz)
JL_DLLEXPORT void jl_log_box_input(int32_t sz)
{
num_boxed_inputs++;
boxed_inputs_size += sz;
Expand Down Expand Up @@ -155,7 +155,7 @@ JL_DLLEXPORT void jl_log_box_input(size_t sz)
}
}
}
JL_DLLEXPORT void jl_log_box_return(size_t sz)
JL_DLLEXPORT void jl_log_box_return(int32_t sz)
{
num_boxed_returns++;
boxed_returns_size += sz;
Expand Down

0 comments on commit fd3cc3a

Please sign in to comment.