diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-06-02 17:41:07 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-06-02 17:41:07 +0000 |
commit | b5cd6163f43ef86e83a2192fd6483f56bba7ebe3 (patch) | |
tree | 816330940bf7fd54c4ee081693984438505a7c5e /llvm/lib/Demangle | |
parent | 869308dd55bf702d8fa2db08d83e05e27b72cc8a (diff) | |
download | bcm5719-llvm-b5cd6163f43ef86e83a2192fd6483f56bba7ebe3.tar.gz bcm5719-llvm-b5cd6163f43ef86e83a2192fd6483f56bba7ebe3.zip |
Remove code path that's dead after r358835
llvm-svn: 362333
Diffstat (limited to 'llvm/lib/Demangle')
-rw-r--r-- | llvm/lib/Demangle/MicrosoftDemangle.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Demangle/MicrosoftDemangle.cpp b/llvm/lib/Demangle/MicrosoftDemangle.cpp index 425c7d3fd19..ed9052f4057 100644 --- a/llvm/lib/Demangle/MicrosoftDemangle.cpp +++ b/llvm/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 |