Open oxinabox opened 1 year ago
Realistically, I don't imagine even extremely long generated source code files would exceed this limit.
I agree with this and I think it is fine to save on the space not to support this.
Is there a reason to use a signed Int32 as opposed to an UInt32? That would allow for twice the number of lines before overflowing... :smile:
There are a lot of places that consume the info, so we can't be sure all of them will handle unsigned numbers well and they print normally as hex then, but that said, LLVM does expect them as uint32: https://llvm.org/doxygen/classllvm_1_1DILocation.html#a756c88c4d0458513f7a73da2e904afbf
Consider:
The correct line number is
2147483648
But it comes out negated, because we have overflowed anInt32
.Realistically, I don't imagine even extremely long generated source code files would exceed this limit. And I suspect if it wasn't mostly whitespace something else would have broken first. But also, I am surprised we use an
Int32
for this even on a 64 bit system,