mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Add an assertion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9831 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1654bdba0b
commit
54baafd286
@ -631,6 +631,7 @@ void AssemblyWriter::printSymbolTable(const SymbolTable &ST) {
|
|||||||
if (const Constant *CPV = dyn_cast<Constant>(V)) {
|
if (const Constant *CPV = dyn_cast<Constant>(V)) {
|
||||||
printConstant(CPV);
|
printConstant(CPV);
|
||||||
} else if (const Type *Ty = dyn_cast<Type>(V)) {
|
} else if (const Type *Ty = dyn_cast<Type>(V)) {
|
||||||
|
assert(Ty->getType() == Type::TypeTy && TI->first == Type::TypeTy);
|
||||||
Out << "\t" << getLLVMName(I->first) << " = type ";
|
Out << "\t" << getLLVMName(I->first) << " = type ";
|
||||||
|
|
||||||
// Make sure we print out at least one level of the type structure, so
|
// Make sure we print out at least one level of the type structure, so
|
||||||
|
Loading…
Reference in New Issue
Block a user