From 3ef12348d775405a50927a0d7f596710f006c7b6 Mon Sep 17 00:00:00 2001 From: Matt Beaumont-Gay Date: Thu, 6 Oct 2011 20:59:09 +0000 Subject: [PATCH] Fix -asserts build git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141313 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Core.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 ................................................--*/