IsBlockTerminated returns true if the last instruction is a terminator (unconditional jump). It is illegal to write another instruction after a terminator.
()
| 321 | // (unconditional jump). It is illegal to write another instruction after a |
| 322 | // terminator. |
| 323 | func (b *Builder) IsBlockTerminated() bool { |
| 324 | return !b.llvm.GetInsertBlock().LastInstruction().IsATerminatorInst().IsNil() |
| 325 | } |
| 326 | |
| 327 | // FuncAddr returns the pointer to the given function. |
| 328 | func (b *Builder) FuncAddr(f *Function) *Value { |