mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-24 06:27:56 +00:00
Add an assertion
llvm-svn: 9831
This commit is contained in:
parent
d542ca6af1
commit
95e79d0097
@ -631,6 +631,7 @@ void AssemblyWriter::printSymbolTable(const SymbolTable &ST) {
|
||||
if (const Constant *CPV = dyn_cast<Constant>(V)) {
|
||||
printConstant(CPV);
|
||||
} else if (const Type *Ty = dyn_cast<Type>(V)) {
|
||||
assert(Ty->getType() == Type::TypeTy && TI->first == Type::TypeTy);
|
||||
Out << "\t" << getLLVMName(I->first) << " = type ";
|
||||
|
||||
// Make sure we print out at least one level of the type structure, so
|
||||
|
Loading…
x
Reference in New Issue
Block a user