[llvm] r318444 - Fix -Wreturn-type falling off the end of a function in new DIA code

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 16 11:32:53 PST 2017


Author: rnk
Date: Thu Nov 16 11:32:53 2017
New Revision: 318444

URL: http://llvm.org/viewvc/llvm-project?rev=318444&view=rev
Log:
Fix -Wreturn-type falling off the end of a function in new DIA code

Modified:
    llvm/trunk/lib/DebugInfo/PDB/DIA/DIATable.cpp

Modified: llvm/trunk/lib/DebugInfo/PDB/DIA/DIATable.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/DIA/DIATable.cpp?rev=318444&r1=318443&r2=318444&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/DIA/DIATable.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/DIA/DIATable.cpp Thu Nov 16 11:32:53 2017
@@ -58,4 +58,5 @@ PDB_TableType DIATable::getTableType() c
     return PDB_TableType::InputAssemblyFiles;
   if (Name16 == DiaTable_Dbg)
     return PDB_TableType::Dbg;
+  return PDBTableType::TableInvalid;
 }




More information about the llvm-commits mailing list