Skip to content

Commit caf5af4

Browse files
committed
[NFCi] Adding inttypes.h to Errors.cpp due to llvm.org change in STLExtras.h.
In Errors.cpp, PRIxPTR is used in a format string: constexpr const char *format = "%-4u %-34s 0x%0.16" PRIxPTR " %s + %td\n"; This fails to build because of upstream changes in STLExtras: llvm/llvm-project@049043b#diff-43fc25e3af55e1ae97f17ef051d68aa4 This patch merely adds the include for the needed PRIxPTR define. (cherry picked from commit 0529fbe)
1 parent fb2346d commit caf5af4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/runtime/Errors.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262
#include <unwind.h>
6363
#endif
6464

65+
#include <inttypes.h>
66+
6567
namespace FatalErrorFlags {
6668
enum: uint32_t {
6769
ReportBacktrace = 1 << 0

0 commit comments

Comments
 (0)