aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_abi.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-11-22 21:52:39 +0000
committergingerBill <bill@gingerbill.org>2020-11-22 21:52:39 +0000
commit4379917c7d37e9af3aebe239d8efa33fd575324a (patch)
tree0feaa212c06023588b19ba2d28dce80bc1618d31 /src/llvm_abi.cpp
parentdc8e895d72ea82bf71fc1944e1ce9da60e56f84a (diff)
Re-enable `zeroext` for `i1`
Diffstat (limited to 'src/llvm_abi.cpp')
-rw-r--r--src/llvm_abi.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/llvm_abi.cpp b/src/llvm_abi.cpp
index 258b90eb5..7521ba2f7 100644
--- a/src/llvm_abi.cpp
+++ b/src/llvm_abi.cpp
@@ -457,8 +457,7 @@ namespace lbAbi386 {
LLVMAttributeRef attr = nullptr;
LLVMTypeRef i1 = LLVMInt1TypeInContext(c);
if (type == i1) {
- // attr = lb_create_enum_attribute(c, "zeroext", true);
- // return lb_arg_type_direct(type, i1, nullptr, attr);
+ attr = lb_create_enum_attribute(c, "zeroext", true);
}
return lb_arg_type_direct(type, nullptr, nullptr, attr);
}
@@ -641,7 +640,7 @@ namespace lbAbiAmd64SysV {
if (is_register(type)) {
LLVMAttributeRef attribute = nullptr;
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);
}
@@ -664,7 +663,7 @@ namespace lbAbiAmd64SysV {
LLVMAttributeRef attr = nullptr;
LLVMTypeRef i1 = LLVMInt1TypeInContext(c);
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);
}