diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp index 87d4b05cf14..9e1622e93d0 100644 --- a/lib/VMCore/Module.cpp +++ b/lib/VMCore/Module.cpp @@ -293,7 +293,7 @@ GlobalAlias *Module::getNamedAlias(const StringRef &Name) const { /// specified name. This method returns null if a MDNode with the specified /// name is not found. NamedMDNode *Module::getNamedMetadata(const StringRef &Name) const { - return dyn_cast_or_null(getNamedValue(Name)); + return dyn_cast_or_null(getValueSymbolTable().lookup(Name)); } //===----------------------------------------------------------------------===//