mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 06:53:40 +00:00
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:
committed by
Ron Evans
parent
08a51535d4
commit
2b7f562202
@@ -80,6 +80,12 @@ func replaceGlobalIntWithArray(mod llvm.Module, name string, buf interface{}) ll
|
||||
// stripPointerCasts strips instruction pointer casts (getelementptr and
|
||||
// bitcast) and returns the original value without the casts.
|
||||
func stripPointerCasts(value llvm.Value) llvm.Value {
|
||||
if !value.IsAConstantExpr().IsNil() {
|
||||
switch value.Opcode() {
|
||||
case llvm.GetElementPtr, llvm.BitCast:
|
||||
return stripPointerCasts(value.Operand(0))
|
||||
}
|
||||
}
|
||||
if !value.IsAInstruction().IsNil() {
|
||||
switch value.InstructionOpcode() {
|
||||
case llvm.GetElementPtr, llvm.BitCast:
|
||||
|
||||
Reference in New Issue
Block a user