compiler/interface: fix LLVM context for boolean variable
Apparently the given code path was never properly tested.
Этот коммит содержится в:
родитель
072eb590a6
коммит
54baf48266
1 изменённых файлов: 1 добавлений и 1 удалений
|
@ -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)
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче