From 54695c9dc1def6c0caeabc2397f48e789933d4f9 Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 18 Dec 2024 21:44:49 +0100 Subject: [PATCH] add note about monomorphization --- src/attributes/codegen.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attributes/codegen.md b/src/attributes/codegen.md index 6790f1754..455d89408 100644 --- a/src/attributes/codegen.md +++ b/src/attributes/codegen.md @@ -71,7 +71,7 @@ r[attributes.codegen.naked.call-stack] The asm code will have a valid call stack and register state on entry as per the signature and calling convention of the function. r[attributes.codegen.naked.no-duplication] -The asm code may not be duplicated by the compiler. +The asm code may not be duplicated by the compiler, except when monomorphizing polymorphic functions. This property is important for naked functions that define symbols in the assembly code. r[attributes.codegen.naked.unsafe-function]