Author: compnerd
Date: Sun Oct 18 15:51:18 2015
New Revision: 250667

URL: http://llvm.org/viewvc/llvm-project?rev=250667&view=rev
Log:
Silence -Wreturn-type with gcc 5.2

The switch is fully covered, mark "default" as unreachable.  NFC.

Modified:
    lldb/trunk/source/DataFormatters/StringPrinter.cpp

Modified: lldb/trunk/source/DataFormatters/StringPrinter.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/StringPrinter.cpp?rev=250667&r1=250666&r2=250667&view=diff
==============================================================================
--- lldb/trunk/source/DataFormatters/StringPrinter.cpp (original)
+++ lldb/trunk/source/DataFormatters/StringPrinter.cpp Sun Oct 18 15:51:18 2015
@@ -258,6 +258,7 @@ StringPrinter::GetDefaultEscapingHelper
                 return GetPrintable(StringPrinter::StringElementType::ASCII, 
buffer, buffer_end, next);
             };
     }
+    llvm_unreachable("bad element type");
 }
 
 // use this call if you already have an LLDB-side buffer for the data


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to