From f3de14da4ba488218657c6af727d70b7ea429831 Mon Sep 17 00:00:00 2001 From: luoliwoshang <2643523683@qq.com> Date: Fri, 22 Aug 2025 16:14:51 +0800 Subject: [PATCH] cl/instr:note for why asm not support pointer type: --- cl/instr.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cl/instr.go b/cl/instr.go index 9a39b7e4..5dabd5f8 100644 --- a/cl/instr.go +++ b/cl/instr.go @@ -139,7 +139,8 @@ func (p *context) asm(b llssa.Builder, args []ssa.Value) (ret llssa.Expr) { inputValues = append(inputValues, value) constraints = append(constraints, "r") } else { - // Pointer operands support was dropped, following TinyGo 0.23 + // Pointer operands support was dropped, following TinyGo + // NOTE(tinygo): Memory references require a type starting with LLVM 14, probably as a preparation for opaque pointers. panic(fmt.Sprintf("asm: unsupported type in inline assembly for operand: %s, only integer types are supported", name)) } }