OSDN Git Service

Fix -Wreturn-type falling off the end of a function in new DIA code
authorReid Kleckner <rnk@google.com>
Thu, 16 Nov 2017 19:32:53 +0000 (19:32 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 16 Nov 2017 19:32:53 +0000 (19:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318444 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/PDB/DIA/DIATable.cpp

index 7f4d06c..24454df 100644 (file)
@@ -58,4 +58,5 @@ PDB_TableType DIATable::getTableType() const {
     return PDB_TableType::InputAssemblyFiles;
   if (Name16 == DiaTable_Dbg)
     return PDB_TableType::Dbg;
+  return PDBTableType::TableInvalid;
 }