Replace branch-to-unreachable with assertion.
llvm-svn: 236893
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp
index d896eea..f312f71 100644
--- a/llvm/lib/IR/Function.cpp
+++ b/llvm/lib/IR/Function.cpp
@@ -490,10 +490,8 @@
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++)