File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -660,25 +660,23 @@ LLVMValueRef LLVMConstVector(LLVMValueRef *ScalarConstantVals, unsigned Size) {
660
660
static LLVMOpcode map_to_llvmopcode (int opcode)
661
661
{
662
662
switch (opcode) {
663
+ default :
664
+ assert (0 && " Unhandled Opcode." );
663
665
#define HANDLE_INST (num, opc, clas ) case num: return LLVM##opc;
664
666
#include " llvm/Instruction.def"
665
667
#undef HANDLE_INST
666
- default :
667
- assert (false && " Unhandled Opcode." );
668
668
}
669
- return static_cast <LLVMOpcode>(0 );
670
669
}
671
670
672
671
static int map_from_llvmopcode (LLVMOpcode code)
673
672
{
674
673
switch (code) {
674
+ default :
675
+ assert (0 && " Unhandled Opcode." );
675
676
#define HANDLE_INST (num, opc, clas ) case LLVM##opc: return num;
676
677
#include " llvm/Instruction.def"
677
678
#undef HANDLE_INST
678
- default :
679
- assert (false && " Unhandled Opcode." );
680
679
}
681
- return 0 ;
682
680
}
683
681
684
682
/* --.. Constant expressions ................................................--*/
You can’t perform that action at this time.
0 commit comments