From d19290e603833a197bc8bfc8315561ec77291225 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 1 Jul 2022 20:11:06 -0700 Subject: [PATCH] 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() annotations. --- src/stage1/codegen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stage1/codegen.cpp b/src/stage1/codegen.cpp index 700fc2af06..697f002dfc 100644 --- a/src/stage1/codegen.cpp +++ b/src/stage1/codegen.cpp @@ -5575,6 +5575,7 @@ static LLVMValueRef ir_render_asm_gen(CodeGen *g, Stage1Air *executable, Stage1A buf_appendf(&constraint_buf, "=%s", buf_ptr(asm_output->constraint) + 1); } else { buf_appendf(&constraint_buf, "=*%s", buf_ptr(asm_output->constraint) + 1); + param_needs_attr[param_index] = true; } if (total_index + 1 < total_constraint_count) { buf_append_char(&constraint_buf, ',');