Merge branch 'master' of https://github.com/olonho/carkot
This commit is contained in:
@@ -91,7 +91,7 @@ class LLVMBuilder(val arm: Boolean = false) {
|
|||||||
|
|
||||||
fun storeString(target: LLVMVariable, source: LLVMVariable, offset: Int) {
|
fun storeString(target: LLVMVariable, source: LLVMVariable, offset: Int) {
|
||||||
val stringType = source.type as LLVMStringType
|
val stringType = source.type as LLVMStringType
|
||||||
val code = "store ${target.type} getelementptr inbounds (${stringType.fullType()}, " +
|
val code = "store ${target.type} getelementptr inbounds (" +
|
||||||
"${stringType.fullType()}* $source, i32 0, i32 $offset), ${target.getType()} $target, align ${stringType.align}"
|
"${stringType.fullType()}* $source, i32 0, i32 $offset), ${target.getType()} $target, align ${stringType.align}"
|
||||||
localCode.appendln(code)
|
localCode.appendln(code)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user