[llvm] r362333 - Remove code path that's dead after r358835
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 2 10:41:07 PDT 2019
Author: nico
Date: Sun Jun 2 10:41:07 2019
New Revision: 362333
URL: http://llvm.org/viewvc/llvm-project?rev=362333&view=rev
Log:
Remove code path that's dead after r358835
Modified:
llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp
Modified: llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp?rev=362333&r1=362332&r2=362333&view=diff
==============================================================================
--- llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp (original)
+++ llvm/trunk/lib/Demangle/MicrosoftDemangle.cpp Sun Jun 2 10:41:07 2019
@@ -1086,10 +1086,8 @@ static void writeHexDigit(char *Buffer,
}
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
More information about the llvm-commits
mailing list