[PATCH] D87375: [compiler-rt] Support glibc's non-standard I printf flag character

Hubert Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 06:23:24 PDT 2020


hubert.reinterpretcast added inline comments.


================
Comment at: compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_format.inc:410
     // Flags
-    while (char_is_one_of(*p, "'-+ #0")) {
+    while (char_is_one_of(*p, "'-+ #0I")) {
       ++p;
----------------
Note that Clang favours the MSVCRT interpretation of `printf("%I64d\n", 42LL);`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87375/new/

https://reviews.llvm.org/D87375



More information about the llvm-commits mailing list