aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2019-07-03 19:48:37 +0200
committerRon Evans <[email protected]>2019-07-03 21:22:12 +0200
commit6611578ec8683e444b3014a1df2310de3ce40283 (patch)
tree5652d619056032c2e0eb080cd9704d16503ce349
parentd49a363d0d3834887415f32d74868f6876fdae08 (diff)
downloadtinygo-6611578ec8683e444b3014a1df2310de3ce40283.tar.gz
tinygo-6611578ec8683e444b3014a1df2310de3ce40283.zip
compiler: remove some TODOs
These have long since been implemented.
-rw-r--r--compiler/compiler.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/compiler.go b/compiler/compiler.go
index ec13e5d21..4693aef0e 100644
--- a/compiler/compiler.go
+++ b/compiler/compiler.go
@@ -1403,7 +1403,6 @@ func (c *Compiler) parseExpr(frame *Frame, expr ssa.Value) (llvm.Value, error) {
// Size would be truncated if truncated to uintptr.
return llvm.Value{}, c.makeError(expr.Pos(), fmt.Sprintf("value is too big (%v bytes)", size))
}
- // TODO: escape analysis
sizeValue := llvm.ConstInt(c.uintptrType, size, false)
buf := c.createRuntimeCall("alloc", []llvm.Value{sizeValue}, expr.Comment)
buf = c.builder.CreateBitCast(buf, llvm.PointerType(typ, 0), "")
@@ -1650,7 +1649,6 @@ func (c *Compiler) parseExpr(frame *Frame, expr ssa.Value) (llvm.Value, error) {
c.emitSliceBoundsCheck(frame, maxSize, sliceLen, sliceCap, expr.Len.Type().(*types.Basic), expr.Cap.Type().(*types.Basic))
// Allocate the backing array.
- // TODO: escape analysis
sliceCapCast, err := c.parseConvert(expr.Cap.Type(), types.Typ[types.Uintptr], sliceCap, expr.Pos())
if err != nil {
return llvm.Value{}, err