llvm: add const addrspace cast
This commit is contained in:
committed by
Andrew Kelley
parent
b8c9d5ae98
commit
68f84964b3
@@ -9035,6 +9035,7 @@ fn castConstAssumeCapacity(self: *Builder, tag: Constant.Tag, val: Constant, ty:
|
||||
.ptrtoint => &llvm.Value.constPtrToInt,
|
||||
.inttoptr => &llvm.Value.constIntToPtr,
|
||||
.bitcast => &llvm.Value.constBitCast,
|
||||
.addrspacecast => &llvm.Value.constAddrSpaceCast,
|
||||
else => unreachable,
|
||||
}(val.toLlvm(self), ty.toLlvm(self)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user