This commit is contained in:
e5l
2016-08-16 12:34:19 +03:00
@@ -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)
} }