Skip to content

Commit b5cd616

Browse files
committed
Remove code path that's dead after r358835
llvm-svn: 362333
1 parent 869308d commit b5cd616

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Demangle/MicrosoftDemangle.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1086,10 +1086,8 @@ static void writeHexDigit(char *Buffer, uint8_t Digit) {
10861086
}
10871087

10881088
static void outputHex(OutputStream &OS, unsigned C) {
1089-
if (C == 0) {
1090-
OS << "\\x00";
1091-
return;
1092-
}
1089+
assert (C != 0);
1090+
10931091
// It's easier to do the math if we can work from right to left, but we need
10941092
// to print the numbers from left to right. So render this into a temporary
10951093
// buffer first, then output the temporary buffer. Each byte is of the form

0 commit comments

Comments
 (0)