From: Matt Beaumont-Gay Date: Thu, 6 Oct 2011 20:59:09 +0000 (+0000) Subject: Fix -asserts build X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3ef12348d775405a50927a0d7f596710f006c7b6;p=oota-llvm.git Fix -asserts build git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141313 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index 8241a809d48..96760579b65 100644 --- a/lib/VMCore/Core.cpp +++ b/lib/VMCore/Core.cpp @@ -666,6 +666,7 @@ static LLVMOpcode map_to_llvmopcode(int opcode) default: assert(false && "Unhandled Opcode."); } + return static_cast(0); } static int map_from_llvmopcode(LLVMOpcode code) @@ -677,6 +678,7 @@ static int map_from_llvmopcode(LLVMOpcode code) default: assert(false && "Unhandled Opcode."); } + return 0; } /*--.. Constant expressions ................................................--*/