switch to use the new api for structtypes.

llvm-svn: 137480
This commit is contained in:
Chris Lattner
2011-08-12 18:06:37 +00:00
parent 2f50231c10
commit 335d399a0e
7 changed files with 18 additions and 18 deletions

View File

@@ -303,7 +303,7 @@ static void WriteTypeTable(const ValueEnumerator &VE, BitstreamWriter &Stream) {
E = ST->element_end(); I != E; ++I)
TypeVals.push_back(VE.getTypeID(*I));
if (ST->isAnonymous()) {
if (ST->isLiteral()) {
Code = bitc::TYPE_CODE_STRUCT_ANON;
AbbrevToUse = StructAnonAbbrev;
} else {