1. Apr 22, 2019
    • Nico Weber's avatar
      gn build: Merge r358818 (JITLink) · 684fe014
      Nico Weber authored
      llvm-svn: 358860
      684fe014
    • Don Hinton's avatar
      [cmake] Fix bug in r358779 - [CMake] Pass monorepo build settings in cross compile · 75a43a28
      Don Hinton authored
      Escape semicolons in the targets list so that cmake doesn't expand
      them to spaces.
      
      llvm-svn: 358859
      75a43a28
    • Nico Weber's avatar
      Attempt to fix LLVM_ENABLE_THREADS=OFF build after r358665 · 18cfd9fd
      Nico Weber authored
      llvm-svn: 358858
      18cfd9fd
    • Nico Weber's avatar
      llvm-undname: Fix hex escapes in wchar_t, char16_t, char32_t strings · ce67a417
      Nico Weber authored
      llvm-undname used to put '\x' in front of every pair of nibbles, but
      u"\xD7\xFF" produces a string with 6 bytes: \xD7 \0 \xFF \0 (and \0\0). Correct
      for a single character (plus terminating \0) is u\xD7FF instead.
      Now, wchar_t, char16_t, and char32_t strings roundtrip from source to
      clang-cl (and cl.exe) and then llvm-undname.
      
      (...at least as long as it's not a string like L"\xD7FF" L"foo" which
      gets demangled as L"\xD7FFfoo", where the compiler then considers the
      "f" as part of the hex escape. That seems ok.)
      
      Also add a comment saying that the "almost-valid" char32_t string I
      added in my last commit is actually produced by compilers.
      
      llvm-svn: 358857
      ce67a417
    • Nico Weber's avatar
      llvm-undname: Fix stack overflow on almost-valid · 8fc9902b
      Nico Weber authored
      If a unsigned with all 4 bytes non-0 was passed to outputHex(), there
      were two off-by-ones in it:
      
      - Both MaxPos and Pos left space for the final \0, which left the buffer
        one byte to small. Set MaxPos to 16 instead of 15 to fix.
      
      - The `assert(Pos >= 0);` was after a `Pos--`, move it up one line.
      
      Since valid Unicode codepoints are <= 0x10ffff, this could never really
      happen in practice.
      
      Found by oss-fuzz.
      
      llvm-svn: 358856
      8fc9902b
  2. Apr 21, 2019