From: David Blaikie Date: Fri, 8 May 2015 18:52:28 +0000 (+0000) Subject: Replace branch-to-unreachable with assertion. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=d3be0003c4b7b3e9b7957cfbfd20373b53326cef Replace branch-to-unreachable with assertion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236893 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/Function.cpp b/lib/IR/Function.cpp index d896eea5803..f312f711c60 100644 --- a/lib/IR/Function.cpp +++ b/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(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(Ty)) { Result += "f_" + getMangledTypeStr(FT->getReturnType()); for (size_t i = 0; i < FT->getNumParams(); i++)