Fix "control reaches end of non-void function" -Wreturn-type warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 17 Aug 2018 09:47:52 +0000 (09:47 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 17 Aug 2018 09:47:52 +0000 (09:47 +0000)
llvm-svn: 340006

llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp

index fc08d14..bd4f8f5 100644 (file)
@@ -894,6 +894,7 @@ bool DwarfCompileUnit::hasDwarfPubSections() const {
     return DD->tuneForGDB() && !includeMinimalInlineScopes() &&
            !CUNode->isDebugDirectivesOnly();
   }
+  llvm_unreachable("Unhandled DICompileUnit::DebugNameTableKind enum");
 }
 
 /// addGlobalName - Add a new global name to the compile unit.