gentests; MakeBody fix
This commit is contained in:
@@ -33,6 +33,7 @@ func main() {
|
|||||||
|
|
||||||
llgenDir(dir + "/cl/_testlibc")
|
llgenDir(dir + "/cl/_testlibc")
|
||||||
llgenDir(dir + "/cl/_testrt")
|
llgenDir(dir + "/cl/_testrt")
|
||||||
|
llgenDir(dir + "/cl/_testgo")
|
||||||
llgenDir(dir+"/cl/_testpy", "")
|
llgenDir(dir+"/cl/_testpy", "")
|
||||||
llgenDir(dir+"/cl/_testdata", "")
|
llgenDir(dir+"/cl/_testdata", "")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -287,7 +287,8 @@ func (p Function) HasBody() bool {
|
|||||||
func (p Function) MakeBody(nblk int) Builder {
|
func (p Function) MakeBody(nblk int) Builder {
|
||||||
p.MakeBlocks(nblk)
|
p.MakeBlocks(nblk)
|
||||||
b := p.NewBuilder()
|
b := p.NewBuilder()
|
||||||
b.impl.SetInsertPointAtEnd(p.blks[0].last)
|
b.blk = p.blks[0]
|
||||||
|
b.impl.SetInsertPointAtEnd(b.blk.last)
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user