aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-06-03 15:10:37 +0300
committerVeikka Tuominen <git@vexu.eu>2022-06-03 15:10:37 +0300
commit8f45e81c840c79097850bb87bbee1303e6d87dd4 (patch)
tree7aaa0a0e8ac9baa89c2178389d14ef18520db826 /src/codegen
parent5c65b086d68280d49037ae316db0aba76fe5cd72 (diff)
downloadzig-8f45e81c840c79097850bb87bbee1303e6d87dd4.tar.gz
zig-8f45e81c840c79097850bb87bbee1303e6d87dd4.zip
stage2: ignore asm inputs named `_`
This is a hacky solution but the entire asm syntax is supposed to be reworked anyways.
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/llvm.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index c7282fa22b..aab2dfe51a 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -5389,7 +5389,9 @@ pub const FuncGen = struct {
}
llvm_constraints.appendSliceAssumeCapacity(constraint);
- name_map.putAssumeCapacityNoClobber(name, {});
+ if (!std.mem.eql(u8, name, "_")) {
+ name_map.putAssumeCapacityNoClobber(name, {});
+ }
llvm_param_i += 1;
total_i += 1;
}