projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d58816f
)
Make printing of metadata more robust when function is not found (which is the normal...
author
Victor Hernandez
<vhernandez@apple.com>
Mon, 18 Jan 2010 19:15:57 +0000
(19:15 +0000)
committer
Victor Hernandez
<vhernandez@apple.com>
Mon, 18 Jan 2010 19:15:57 +0000
(19:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93748
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/AsmWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index eff2c772c2b3a656cd39412f0ea349ef752d61d1..c0aeaf93c8845174e38c429e28985caf7f57275d 100644
(file)
--- a/
lib/VMCore/AsmWriter.cpp
+++ b/
lib/VMCore/AsmWriter.cpp
@@
-2064,7
+2064,7
@@
void Value::print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW) const {
} else if (const MDNode *N = dyn_cast<MDNode>(this)) {
Function *F = N->getFunction();
SlotTracker SlotTable(F);
- AssemblyWriter W(OS, SlotTable,
getModuleFromVal(F)
, AAW);
+ AssemblyWriter W(OS, SlotTable,
F ? getModuleFromVal(F) : 0
, AAW);
W.printMDNodeBody(N);
} else if (const NamedMDNode *N = dyn_cast<NamedMDNode>(this)) {
SlotTracker SlotTable(N->getParent());