From: Nico Weber Date: Sun, 2 Jun 2019 17:41:07 +0000 (+0000) Subject: Remove code path that's dead after r358835 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b5b20a5ea19d968e6a31f7273747695403f6516;p=llvm Remove code path that's dead after r358835 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362333 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Demangle/MicrosoftDemangle.cpp b/lib/Demangle/MicrosoftDemangle.cpp index 425c7d3fd19..ed9052f4057 100644 --- a/lib/Demangle/MicrosoftDemangle.cpp +++ b/lib/Demangle/MicrosoftDemangle.cpp @@ -1086,10 +1086,8 @@ static void writeHexDigit(char *Buffer, uint8_t Digit) { } static void outputHex(OutputStream &OS, unsigned C) { - if (C == 0) { - OS << "\\x00"; - return; - } + assert (C != 0); + // It's easier to do the math if we can work from right to left, but we need // to print the numbers from left to right. So render this into a temporary // buffer first, then output the temporary buffer. Each byte is of the form