ci: add support for LLVM 15

This commit switches to LLVM 15 everywhere by default, while still
keeping LLVM 14 support.
This commit is contained in:
Ayke van Laethem
2022-09-22 13:39:51 +02:00
committed by Ron Evans
parent 08a51535d4
commit 2b7f562202
40 changed files with 895 additions and 881 deletions
+3 -1
View File
@@ -305,7 +305,9 @@ func (p *lowerInterfacesPass) addTypeMethods(t *typeInfo, methodSet llvm.Value)
// no methods or methods already read
return
}
methodSet = methodSet.Operand(0) // get global from GEP
if !methodSet.IsAConstantExpr().IsNil() && methodSet.Opcode() == llvm.GetElementPtr {
methodSet = methodSet.Operand(0) // get global from GEP, for LLVM 14 (non-opaque pointers)
}
// This type has methods, collect all methods of this type.
t.methodSet = methodSet