mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Re-enable zeroext for i1
This commit is contained in:
+3
-4
@@ -457,8 +457,7 @@ namespace lbAbi386 {
|
|||||||
LLVMAttributeRef attr = nullptr;
|
LLVMAttributeRef attr = nullptr;
|
||||||
LLVMTypeRef i1 = LLVMInt1TypeInContext(c);
|
LLVMTypeRef i1 = LLVMInt1TypeInContext(c);
|
||||||
if (type == i1) {
|
if (type == i1) {
|
||||||
// attr = lb_create_enum_attribute(c, "zeroext", true);
|
attr = lb_create_enum_attribute(c, "zeroext", true);
|
||||||
// return lb_arg_type_direct(type, i1, nullptr, attr);
|
|
||||||
}
|
}
|
||||||
return lb_arg_type_direct(type, nullptr, nullptr, attr);
|
return lb_arg_type_direct(type, nullptr, nullptr, attr);
|
||||||
}
|
}
|
||||||
@@ -641,7 +640,7 @@ namespace lbAbiAmd64SysV {
|
|||||||
if (is_register(type)) {
|
if (is_register(type)) {
|
||||||
LLVMAttributeRef attribute = nullptr;
|
LLVMAttributeRef attribute = nullptr;
|
||||||
if (type == LLVMInt1TypeInContext(c)) {
|
if (type == LLVMInt1TypeInContext(c)) {
|
||||||
// attribute = lb_create_enum_attribute(c, "zeroext", true);
|
attribute = lb_create_enum_attribute(c, "zeroext", true);
|
||||||
}
|
}
|
||||||
return lb_arg_type_direct(type, nullptr, nullptr, attribute);
|
return lb_arg_type_direct(type, nullptr, nullptr, attribute);
|
||||||
}
|
}
|
||||||
@@ -664,7 +663,7 @@ namespace lbAbiAmd64SysV {
|
|||||||
LLVMAttributeRef attr = nullptr;
|
LLVMAttributeRef attr = nullptr;
|
||||||
LLVMTypeRef i1 = LLVMInt1TypeInContext(c);
|
LLVMTypeRef i1 = LLVMInt1TypeInContext(c);
|
||||||
if (type == i1) {
|
if (type == i1) {
|
||||||
// attr = lb_create_enum_attribute(c, "zeroext", true);
|
attr = lb_create_enum_attribute(c, "zeroext", true);
|
||||||
}
|
}
|
||||||
return lb_arg_type_direct(type, nullptr, nullptr, attr);
|
return lb_arg_type_direct(type, nullptr, nullptr, attr);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user