This patch fixes use of incorrect %zi to format a plain int, and switches from using "%llu" to format a uint64_t to using the exact width specifier PRIu64 from inttypes.h
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
How about re-writing these to use llvm::formatv() since the whole point of it is to eliminate this problem entirely and clayborg@ has agreed that it looks good going forward?
Individual call-site suggestions inlined.
source/Interpreter/Args.cpp | ||
---|---|---|
216–217 ↗ | (On Diff #82256) | s.Format("{0}[{1}]=\"{2}\"\n", label_name, i++, entry.ref); |
219 ↗ | (On Diff #82256) | s.Format("{0}[{1}]=NULL\n", label_name, i); |
source/Plugins/ExpressionParser/Clang/IRForTarget.cpp | ||
517–519 ↗ | (On Diff #82256) | log->Format("Encountered an Object-C constant string with unusual " "element size {0}", string_array->getElementByteSize()); |
Comment Actions
Please swift to using the new formatv stuff as this is the main reason Zach made those changes.
source/Plugins/ExpressionParser/Clang/IRForTarget.cpp | ||
---|---|---|
41 ↗ | (On Diff #82256) | Not needed if you use formatv. |