diff options
author | Devang Patel <dpatel@apple.com> | 2010-01-05 20:41:31 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-01-05 20:41:31 +0000 |
commit | 3e30c2a3c54c50246e6cccf0c8842619e29fe66c (patch) | |
tree | 687bd99218ce170b8ac4dd03ce4fe61bc89842b8 /lib/Bitcode | |
parent | 11acaa374cdcebb161bf0de5f244265d78a749c1 (diff) | |
download | external_llvm-3e30c2a3c54c50246e6cccf0c8842619e29fe66c.zip external_llvm-3e30c2a3c54c50246e6cccf0c8842619e29fe66c.tar.gz external_llvm-3e30c2a3c54c50246e6cccf0c8842619e29fe66c.tar.bz2 |
NamedMDNode is a collection MDNodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92761 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 98243e0..c8097a0 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -787,11 +787,11 @@ bool BitcodeReader::ParseMetadata() { // Read named metadata elements. unsigned Size = Record.size(); - SmallVector<MetadataBase*, 8> Elts; + SmallVector<MDNode *, 8> Elts; for (unsigned i = 0; i != Size; ++i) { Value *MD = MDValueList.getValueFwdRef(Record[i]); - if (MetadataBase *B = dyn_cast<MetadataBase>(MD)) - Elts.push_back(B); + if (MDNode *B = dyn_cast_or_null<MDNode>(MD)) + Elts.push_back(B); } Value *V = NamedMDNode::Create(Context, Name.str(), Elts.data(), Elts.size(), TheModule); |