summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Function.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-05-08 18:52:28 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-05-08 18:52:28 +0000
commitb340f0a7bc9f2835c52f7bd646b321cc83d7b36e (patch)
tree07bd6c5d25d55ef31d326cd266bfa55a38069506 /llvm/lib/IR/Function.cpp
parenta49c59145ba0869036dac3c7326f00072a6569cd (diff)
downloadbcm5719-llvm-b340f0a7bc9f2835c52f7bd646b321cc83d7b36e.tar.gz
bcm5719-llvm-b340f0a7bc9f2835c52f7bd646b321cc83d7b36e.zip
Replace branch-to-unreachable with assertion.
llvm-svn: 236893
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r--llvm/lib/IR/Function.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp
index d896eea5803..f312f711c60 100644
--- a/llvm/lib/IR/Function.cpp
+++ b/llvm/lib/IR/Function.cpp
@@ -490,10 +490,8 @@ static std::string getMangledTypeStr(Type* Ty) {
Result += "a" + llvm::utostr(ATyp->getNumElements()) +
getMangledTypeStr(ATyp->getElementType());
} else if (StructType* STyp = dyn_cast<StructType>(Ty)) {
- if (!STyp->isLiteral())
- Result += STyp->getName();
- else
- llvm_unreachable("TODO: implement literal types");
+ assert(!STyp->isLiteral() && "TODO: implement literal types");
+ Result += STyp->getName();
} else if (FunctionType* FT = dyn_cast<FunctionType>(Ty)) {
Result += "f_" + getMangledTypeStr(FT->getReturnType());
for (size_t i = 0; i < FT->getNumParams(); i++)
OpenPOWER on IntegriCloud