commit | 3ebb64946bc8e7c8feba1b2044e7a47f80b3a83f | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Aug 12 18:06:37 2011 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Aug 12 18:06:37 2011 +0000 |
tree | e4efc3e54eb1eb577da0946a1d223030101839b5 | |
parent | 8dcfc74af42cca1feecd3331dd11b494b0f02792 [diff] [blame] |
switch to use the new api for structtypes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137480 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index d245e5b8..12f0715 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -303,7 +303,7 @@ 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 {