compiler/interface: fix LLVM context for boolean variable

Apparently the given code path was never properly tested.
Этот коммит содержится в:
Ayke van Laethem 2019-01-11 20:19:00 +01:00
родитель 072eb590a6
коммит 54baf48266
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: E97FF5335DFDFDED

Просмотреть файл

@ -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)