Fix mismatch between %d/%x format strings and uint64_t type.
This fixes incorrect printing of "Scope Sizes" on 32-bit platforms
where this leads to llvm::print() misreading vararg.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
That said, I've only checked format strings in LVScope.cpp. I suspect other files may suffer from similar problems. If you replace llvm::format() with plain printf(), 32-bit GCC warns about type mismatches.
Comment Actions
PRIx64 it is a very good finding. I have the same feeling about the same issue in other modules. But at least we know the cause. Thanks for your fix.
Comment Actions
@mgorny Can you update and close https://github.com/llvm/llvm-project/issues/58758 after your fix is landed. Thanks.