aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_abi.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-06-08 12:18:26 +0100
committergingerBill <bill@gingerbill.org>2021-06-08 12:18:26 +0100
commit28e9a4f79c95784651649a799f594ab8c68aa207 (patch)
tree37302fa38f92c57a7a49f261246852a2f4672d67 /src/llvm_abi.cpp
parente79fb6829148166c5b4971f294e83a89e5fa37f3 (diff)
Replace `js_wasm32` with `freestanding_wasm32`
Diffstat (limited to 'src/llvm_abi.cpp')
-rw-r--r--src/llvm_abi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_abi.cpp b/src/llvm_abi.cpp
index 1347a1cdd..233fc2413 100644
--- a/src/llvm_abi.cpp
+++ b/src/llvm_abi.cpp
@@ -151,7 +151,7 @@ void lb_add_function_type_attributes(LLVMValueRef fn, lbFunctionType *ft, ProcCa
lbCallingConventionKind cc_kind = lbCallingConvention_C;
// TODO(bill): Clean up this logic
- if (build_context.metrics.os != TargetOs_js) {
+ if (!is_arch_wasm()) {
cc_kind = lb_calling_convention_map[calling_convention];
}
LLVMSetFunctionCallConv(fn, cc_kind);