[llvm] r342681 - [PDB] Fix -Wcovered-switch-default warning.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 20 12:57:49 PDT 2018


Author: zturner
Date: Thu Sep 20 12:57:49 2018
New Revision: 342681

URL: http://llvm.org/viewvc/llvm-project?rev=342681&view=rev
Log:
[PDB] Fix -Wcovered-switch-default warning.

Modified:
    llvm/trunk/lib/DebugInfo/PDB/PDBExtras.cpp

Modified: llvm/trunk/lib/DebugInfo/PDB/PDBExtras.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/PDBExtras.cpp?rev=342681&r1=342680&r2=342681&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/PDBExtras.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/PDBExtras.cpp Thu Sep 20 12:57:49 2018
@@ -65,10 +65,7 @@ raw_ostream &llvm::pdb::operator<<(raw_o
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_BuiltinType, HResult, OS)
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_BuiltinType, Char16, OS)
     CASE_OUTPUT_ENUM_CLASS_NAME(PDB_BuiltinType, Char32, OS)
-  default:
-    OS << "Unknown";
   }
-
   return OS;
 }
 




More information about the llvm-commits mailing list