mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-20 00:16:47 +00:00
Cleanup again
This commit is contained in:
@@ -9224,14 +9224,16 @@ lbValue lb_build_builtin_proc(lbProcedure *p, Ast *expr, TypeAndValue const &tv,
|
|||||||
GB_ASSERT(name != nullptr);
|
GB_ASSERT(name != nullptr);
|
||||||
|
|
||||||
unsigned id = LLVMLookupIntrinsicID(name, gb_strlen(name));
|
unsigned id = LLVMLookupIntrinsicID(name, gb_strlen(name));
|
||||||
LLVMValueRef ip = LLVMGetIntrinsicDeclaration(p->module->mod, id, &platform_type, 1);
|
LLVMTypeRef types[1] = {lb_type(p->module, platform_type)};
|
||||||
|
LLVMValueRef ip = LLVMGetIntrinsicDeclaration(p->module->mod, id, types, gb_count_of(types));
|
||||||
|
|
||||||
|
lbValue res = {};
|
||||||
|
|
||||||
LLVMValueRef args[3] = {};
|
LLVMValueRef args[3] = {};
|
||||||
args[0] = x.value;
|
args[0] = x.value;
|
||||||
args[1] = y.value;
|
args[1] = y.value;
|
||||||
args[2] = scale.value;
|
args[2] = scale.value;
|
||||||
|
|
||||||
lbValue res = {};
|
|
||||||
res.value = LLVMBuildCall(p->builder, ip, args, gb_count_of(args), "");
|
res.value = LLVMBuildCall(p->builder, ip, args, gb_count_of(args), "");
|
||||||
res.type = platform_type;
|
res.type = platform_type;
|
||||||
return lb_emit_conv(p, res, tv.type);
|
return lb_emit_conv(p, res, tv.type);
|
||||||
|
|||||||
Reference in New Issue
Block a user