projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57eae13
)
Do not use getNamedValue() to lookup NamedMDNode. NamedMDNode is not a GlobalValue.
author
Devang Patel
<dpatel@apple.com>
Thu, 30 Jul 2009 18:46:29 +0000
(18:46 +0000)
committer
Devang Patel
<dpatel@apple.com>
Thu, 30 Jul 2009 18:46:29 +0000
(18:46 +0000)
Thanks Benjamin Kramer!
llvm-svn: 77619
llvm/lib/VMCore/Module.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/VMCore/Module.cpp
b/llvm/lib/VMCore/Module.cpp
index
87d4b05
..
9e1622e
100644
(file)
--- a/
llvm/lib/VMCore/Module.cpp
+++ b/
llvm/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>(get
NamedValue
(Name));
+ return dyn_cast_or_null<NamedMDNode>(get
ValueSymbolTable().lookup
(Name));
}
//===----------------------------------------------------------------------===//