projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1654bdb
)
Add an assertion
author
Chris Lattner
<sabre@nondot.org>
Sun, 9 Nov 2003 15:51:07 +0000
(15:51 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 9 Nov 2003 15:51:07 +0000
(15:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9831
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/AsmWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index b5dfe41e84e11075a4b6b636b18a19198324a90b..c9c4dde7e85ae5368de66f25628b62a13f146767 100644
(file)
--- a/
lib/VMCore/AsmWriter.cpp
+++ b/
lib/VMCore/AsmWriter.cpp
@@
-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