diff --git a/compiler/interface-lowering.go b/compiler/interface-lowering.go index 8ce14d4b8..03304b126 100644 --- a/compiler/interface-lowering.go +++ b/compiler/interface-lowering.go @@ -444,7 +444,7 @@ func (p *lowerInterfacesPass) run() { var commaOk llvm.Value if t.countMakeInterfaces == 0 { // impossible type assert: optimize accordingly - commaOk = llvm.ConstInt(llvm.Int1Type(), 0, false) + commaOk = llvm.ConstInt(p.ctx.Int1Type(), 0, false) } else { // regular type assert p.builder.SetInsertPointBefore(use)