summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Core.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-10-06 20:59:09 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-10-06 20:59:09 +0000
commit78f290c7394be8ea49290caa668ea63990d8cfbf (patch)
tree7e291ac13e8a874db83883024916c6c9bd0b7703 /llvm/lib/VMCore/Core.cpp
parentb7531d622daea80369988084231f746fc0d18466 (diff)
downloadbcm5719-llvm-78f290c7394be8ea49290caa668ea63990d8cfbf.tar.gz
bcm5719-llvm-78f290c7394be8ea49290caa668ea63990d8cfbf.zip
Fix -asserts build
llvm-svn: 141313
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
-rw-r--r--llvm/lib/VMCore/Core.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp
index 8241a809d48..96760579b65 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<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 ................................................--*/
OpenPOWER on IntegriCloud