Skip to content

Commit 689c587

Browse files
committed
add note about monomorphization
1 parent 1efa287 commit 689c587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributes/codegen.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ r[attributes.codegen.naked.call-stack]
7070
The asm code will have a valid call stack and register state on entry as per the signature and calling convention of the function.
7171

7272
r[attributes.codegen.naked.no-duplication]
73-
The asm code may not be duplicated by the compiler.
73+
The asm code may not be duplicated by the compiler, except when monomorphizing polymorphic functions.
7474
This property is important for naked functions that define symbols in the assembly code.
7575

7676
r[attributes.codegen.naked.unsafe-function]

0 commit comments

Comments
 (0)