mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Replace branch-to-unreachable with assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236893 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
278c121d39
commit
d3be0003c4
@ -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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user