Fix a spelling error in the description of a statistic. NFC
[oota-llvm.git] / lib / IR / MetadataTracking.cpp
index ba97ca033a4543c6e77a17303551c41190970df4..47f0b9366d7d0db5f3b5a4d23f3826337fad3b1f 100644 (file)
 using namespace llvm;
 
 ReplaceableMetadataImpl *ReplaceableMetadataImpl::get(Metadata &MD) {
-  if (auto *N = dyn_cast<MDNode>(&MD)) {
-    if (auto *U = dyn_cast<UniquableMDNode>(N))
-      return U->ReplaceableUses.get();
-    return cast<MDNodeFwdDecl>(N);
-  }
+  if (auto *N = dyn_cast<MDNode>(&MD))
+    return N->Context.getReplaceableUses();
   return dyn_cast<ValueAsMetadata>(&MD);
 }