mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-30 01:31:19 +00:00
IR: Merge UniquableMDNode back into MDNode, NFC
As pointed out in r226501, the distinction between `MDNode` and `UniquableMDNode` is confusing. When we need subclasses of `MDNode` that don't use all its functionality it might make sense to break it apart again, but until then this makes the code clearer. llvm-svn: 226520
This commit is contained in:
1 parent
93e983e707
commit
2bc00f4a38
10 files changed
+142
-175
No files matched your search
@@ -572,7 +572,7 @@ void BitcodeReaderMDValueList::tryToResolveCycles() {
|
||||
|
||||
// Resolve any cycles.
|
||||
for (auto &MD : MDValuePtrs) {
|
||||
auto *N = dyn_cast_or_null<UniquableMDNode>(MD);
|
||||
auto *N = dyn_cast_or_null<MDNode>(MD);
|
||||
if (!N)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in new issue
Block a user