Skip to content

Commit d19290e

Browse files
committed
stage1: update inline asm outputs to LLVM 14
LLVM pointers are transitioning to no longer have types, however, inline assembly inputs and outputs which accept pointers need to know the element type. So, inline assembly must be upgraded to add elementtype(<ty>) annotations.
1 parent 1fa4a58 commit d19290e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/stage1/codegen.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5575,6 +5575,7 @@ static LLVMValueRef ir_render_asm_gen(CodeGen *g, Stage1Air *executable, Stage1A
55755575
buf_appendf(&constraint_buf, "=%s", buf_ptr(asm_output->constraint) + 1);
55765576
} else {
55775577
buf_appendf(&constraint_buf, "=*%s", buf_ptr(asm_output->constraint) + 1);
5578+
param_needs_attr[param_index] = true;
55785579
}
55795580
if (total_index + 1 < total_constraint_count) {
55805581
buf_append_char(&constraint_buf, ',');

0 commit comments

Comments
 (0)