diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-19 14:42:55 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-19 14:42:55 +0000 |
commit | 86f1bf98dc518177ed78c16fa97a18f3deaa12da (patch) | |
tree | 2adfab32ccf289f4b2b0236a451b50d47bb05abf /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 6145366510197e52862236960816c14b6e687004 (diff) | |
download | llvm-86f1bf98dc518177ed78c16fa97a18f3deaa12da.zip llvm-86f1bf98dc518177ed78c16fa97a18f3deaa12da.tar.gz llvm-86f1bf98dc518177ed78c16fa97a18f3deaa12da.tar.bz2 |
IR: Require DICompositeType for ODR uniquing type map
Tighten up the API for debug info ODR type uniquing in LLVMContext. The
only reason to allow other DIType subclasses is to make the unit tests
prettier :/.
llvm-svn: 266737
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 1a83359..d454eb1 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -2192,12 +2192,12 @@ std::error_code BitcodeReader::parseMetadata(bool ModuleLevel) { // mapping. unsigned Flags = Record[10]; auto *Identifier = getMDString(Record[15]); - DIType **MappedT = nullptr; + DICompositeType **MappedT = nullptr; if (!(Flags & DINode::FlagFwdDecl) && Identifier) MappedT = Context.getOrInsertODRUniquedType(*Identifier); // Use the mapped type node, or create a new one if necessary. - DIType *CT = MappedT ? *MappedT : nullptr; + DICompositeType *CT = MappedT ? *MappedT : nullptr; if (!CT) { CT = GET_OR_DISTINCT( DICompositeType, Record[0], |