[PATCH] D112247: Fix printEscapedString: Hex escape is \xHH, not \HH.

Jeff Niu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 21 11:56:23 PDT 2021


Mogball added inline comments.


================
Comment at: llvm/lib/Support/StringExtras.cpp:70
     else
-      Out << '\\' << hexdigit(C >> 4) << hexdigit(C & 0x0F);
+      Out << "\\x" << hexdigit(C >> 4) << hexdigit(C & 0x0F);
   }
----------------
Can you add a test case for this?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112247



More information about the llvm-commits mailing list