]> granicus.if.org Git - llvm/commitdiff
Remove code path that's dead after r358835
authorNico Weber <nicolasweber@gmx.de>
Sun, 2 Jun 2019 17:41:07 +0000 (17:41 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sun, 2 Jun 2019 17:41:07 +0000 (17:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362333 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Demangle/MicrosoftDemangle.cpp

index 425c7d3fd19bcafebaa2bd2d4ebb51c922ffb60a..ed9052f40570abb7a094f383c07e9a1e60092617 100644 (file)
@@ -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