diff options
Diffstat (limited to 'lib/VMCore/Module.cpp')
-rw-r--r-- | lib/VMCore/Module.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp index 87d4b05cf1..9e1622e93d 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<NamedMDNode>(getNamedValue(Name)); + return dyn_cast_or_null<NamedMDNode>(getValueSymbolTable().lookup(Name)); } //===----------------------------------------------------------------------===// |