compiler: add instrinsic for crypto/internal/constanttime.boolToUint8

This commit is contained in:
Damian Gryski
2026-03-24 11:53:00 -07:00
committed by Ron Evans
parent 17fed5980b
commit f496571747
2 changed files with 21 additions and 0 deletions
+4
View File
@@ -873,6 +873,10 @@ func (c *compilerContext) createPackage(irbuilder llvm.Builder, pkg *ssa.Package
// with a LLVM intrinsic.
continue
}
if ok := b.defineCryptoIntrinsic(); ok {
// Body of this function was replaced
continue
}
if member.Blocks == nil {
// Try to define this as an intrinsic function.
b.defineIntrinsicFunction()