ABataev added a comment. nvcc always emits debug location before the very first label that represents function start. So, we can consider this as the requirement for NVPTX. Repository: rL LLVM https://reviews.llvm.org/D45784