MCPcopy
hub / github.com/tinygo-org/tinygo / createMapClear

Method createMapClear

compiler/map.go:183–185  ·  view source on GitHub ↗

Clear the given map.

(m llvm.Value)

Source from the content-addressed store, hash-verified

181
182// Clear the given map.
183func (b *builder) createMapClear(m llvm.Value) {
184 b.createRuntimeCall("hashmapClear", []llvm.Value{m}, "")
185}
186
187// createMapIteratorNext lowers the *ssa.Next instruction for iterating over a
188// map. It returns a tuple of {bool, key, value} with the result of the

Callers 1

createBuiltinMethod · 0.95

Calls 1

createRuntimeCallMethod · 0.95

Tested by

no test coverage detected