Skip to content

Commit fd3cc3a

Browse files
committed
emit_sizeof emits an i32 not a size_t
1 parent 717300c commit fd3cc3a

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/codegen.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -891,18 +891,18 @@ static const auto jlegalx_func = new JuliaFunction{
891891
};
892892
#ifdef JL_DISPATCH_LOG_BOXES
893893
static const auto jllogboxinput_func = new JuliaFunction{
894-
XSTR(jl_log_box_input),
895-
[](LLVMContext &C) {
896-
return FunctionType::get(getVoidTy(C), {getSizeTy(C)}, false);
897-
},
898-
nullptr,
894+
XSTR(jl_log_box_input),
895+
[](LLVMContext &C) {
896+
return FunctionType::get(getVoidTy(C), {getInt32Ty(C)}, false);
897+
},
898+
nullptr,
899899
};
900900
static const auto jllogboxreturn_func = new JuliaFunction{
901-
XSTR(jl_log_box_return),
902-
[](LLVMContext &C) {
903-
return FunctionType::get(getVoidTy(C), {getSizeTy(C)}, false);
904-
},
905-
nullptr,
901+
XSTR(jl_log_box_return),
902+
[](LLVMContext &C) {
903+
return FunctionType::get(getVoidTy(C), {getInt32Ty(C)}, false);
904+
},
905+
nullptr,
906906
};
907907
#endif
908908
static const auto jl_alloc_obj_func = new JuliaFunction{

src/gc-alloc-profiler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ JL_DLLEXPORT void jl_set_extra_allocs_rate(float rate)
125125
}
126126

127127
#ifdef JL_DISPATCH_LOG_BOXES
128-
JL_DLLEXPORT void jl_log_box_input(size_t sz)
128+
JL_DLLEXPORT void jl_log_box_input(int32_t sz)
129129
{
130130
num_boxed_inputs++;
131131
boxed_inputs_size += sz;
@@ -155,7 +155,7 @@ JL_DLLEXPORT void jl_log_box_input(size_t sz)
155155
}
156156
}
157157
}
158-
JL_DLLEXPORT void jl_log_box_return(size_t sz)
158+
JL_DLLEXPORT void jl_log_box_return(int32_t sz)
159159
{
160160
num_boxed_returns++;
161161
boxed_returns_size += sz;

0 commit comments

Comments
 (0)