Skip to content

Commit 1eb09fb

Browse files
committed
llvm: better debug info
1 parent 9e40b9b commit 1eb09fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

llvm-backend/src/main/kotlin/io/github/tmarsteel/emerge/backend/llvm/dsl/BasicBlockBuilder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ private open class BasicBlockBuilderImpl<C : LlvmContext, R : LlvmType>(
431431
}
432432
args.zip(function.type.parameterTypes).forEachIndexed { index, (arg, paramType) ->
433433
require(arg.isLlvmAssignableTo(paramType)) {
434-
"argument #$index to ${function.name}: ${arg.type} is not llvm-assignable to $paramType"
434+
"argument #$index to ${function.name}: ${arg.type} is not llvm-assignable to $paramType (${currentDebugLocation()}"
435435
}
436436
}
437437

0 commit comments

Comments
 (0)