Fix -asserts build

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141313 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Beaumont-Gay 2011-10-06 20:59:09 +00:00
parent 9a6eba6203
commit 3ef12348d7

View File

@ -666,6 +666,7 @@ static LLVMOpcode map_to_llvmopcode(int opcode)
default: default:
assert(false && "Unhandled Opcode."); assert(false && "Unhandled Opcode.");
} }
return static_cast<LLVMOpcode>(0);
} }
static int map_from_llvmopcode(LLVMOpcode code) static int map_from_llvmopcode(LLVMOpcode code)
@ -677,6 +678,7 @@ static int map_from_llvmopcode(LLVMOpcode code)
default: default:
assert(false && "Unhandled Opcode."); assert(false && "Unhandled Opcode.");
} }
return 0;
} }
/*--.. Constant expressions ................................................--*/ /*--.. Constant expressions ................................................--*/