Fix -asserts build
authorMatt Beaumont-Gay <matthewbg@google.com>
Thu, 6 Oct 2011 20:59:09 +0000 (20:59 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Thu, 6 Oct 2011 20:59:09 +0000 (20:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141313 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Core.cpp

index 8241a809d48defc8820d5bb60aedf32a9490f7fd..96760579b656ceec3e06217d6c3a442c1cfcc706 100644 (file)
@@ -666,6 +666,7 @@ static LLVMOpcode map_to_llvmopcode(int opcode)
        default:
            assert(false && "Unhandled Opcode.");
     }
+    return static_cast<LLVMOpcode>(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 ................................................--*/