[llvm] r187649 - Pacify GCC, which worries about falling off the end of the switch.

Duncan Sands baldrick at free.fr
Fri Aug 2 02:37:20 PDT 2013


Author: baldrick
Date: Fri Aug  2 04:37:20 2013
New Revision: 187649

URL: http://llvm.org/viewvc/llvm-project?rev=187649&view=rev
Log:
Pacify GCC, which worries about falling off the end of the switch.

Modified:
    llvm/trunk/lib/MC/MCInstPrinter.cpp

Modified: llvm/trunk/lib/MC/MCInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCInstPrinter.cpp?rev=187649&r1=187648&r2=187649&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCInstPrinter.cpp (original)
+++ llvm/trunk/lib/MC/MCInstPrinter.cpp Fri Aug  2 04:37:20 2013
@@ -89,6 +89,7 @@ format_object1<int64_t> MCInstPrinter::f
         return format("%" PRIx64 "h", Value);
     }
   }
+  llvm_unreachable("unsupported print style");
 }
 
 format_object1<uint64_t> MCInstPrinter::formatHex(const uint64_t Value) const {
@@ -101,4 +102,5 @@ format_object1<uint64_t> MCInstPrinter::
     else
       return format("%" PRIx64 "h", Value);
   }
+  llvm_unreachable("unsupported print style");
 }





More information about the llvm-commits mailing list