[llvm] r210005 - Silence -Wreturn-type warning

Alp Toker alp at nuanti.com
Sun Jun 1 21:34:10 PDT 2014


Author: alp
Date: Sun Jun  1 23:34:10 2014
New Revision: 210005

URL: http://llvm.org/viewvc/llvm-project?rev=210005&view=rev
Log:
Silence -Wreturn-type warning

Modified:
    llvm/trunk/lib/Support/GraphWriter.cpp

Modified: llvm/trunk/lib/Support/GraphWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/GraphWriter.cpp?rev=210005&r1=210004&r2=210005&view=diff
==============================================================================
--- llvm/trunk/lib/Support/GraphWriter.cpp (original)
+++ llvm/trunk/lib/Support/GraphWriter.cpp Sun Jun  1 23:34:10 2014
@@ -127,6 +127,7 @@ static const char *getProgramName(GraphP
   case GraphProgram::CIRCO:
     return "circo";
   }
+  llvm_unreachable("bad kind");
 }
 
 bool llvm::DisplayGraph(StringRef FilenameRef, bool wait,





More information about the llvm-commits mailing list