mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Do not use getNamedValue() to lookup NamedMDNode. NamedMDNode is not a GlobalValue.
Thanks Benjamin Kramer! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77619 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eeae0641bf
commit
76dd4e8941
@ -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));
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Loading…
x
Reference in New Issue
Block a user