From 78f290c7394be8ea49290caa668ea63990d8cfbf 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 llvm-svn: 141313 --- llvm/lib/VMCore/Core.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp index 8241a809d48d..96760579b656 100644 --- a/llvm/lib/VMCore/Core.cpp +++ b/llvm/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 ................................................--*/