summaryrefslogtreecommitdiff
path: root/vendor/github.com/bytedance/sonic/internal/encoder/vm/stbus.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/bytedance/sonic/internal/encoder/vm/stbus.go')
-rw-r--r--vendor/github.com/bytedance/sonic/internal/encoder/vm/stbus.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/bytedance/sonic/internal/encoder/vm/stbus.go b/vendor/github.com/bytedance/sonic/internal/encoder/vm/stbus.go
index 21b476c3c..152c72ca1 100644
--- a/vendor/github.com/bytedance/sonic/internal/encoder/vm/stbus.go
+++ b/vendor/github.com/bytedance/sonic/internal/encoder/vm/stbus.go
@@ -22,13 +22,14 @@ import (
"github.com/bytedance/sonic/internal/encoder/alg"
"github.com/bytedance/sonic/internal/encoder/ir"
+ "github.com/bytedance/sonic/internal/encoder/prim"
"github.com/bytedance/sonic/internal/encoder/vars"
"github.com/bytedance/sonic/internal/rt"
)
func EncodeTypedPointer(buf *[]byte, vt *rt.GoType, vp *unsafe.Pointer, sb *vars.Stack, fv uint64) error {
if vt == nil {
- return alg.EncodeNil(buf)
+ return prim.EncodeNil(buf)
} else if pp, err := vars.FindOrCompile(vt, (fv&(1<<alg.BitPointerValue)) != 0, compiler); err != nil {
return err
} else if vt.Indirect() {