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:
f3f55a9
)
fix refactoro
author
Chris Lattner
<sabre@nondot.org>
Thu, 31 Dec 2009 08:23:09 +0000
(08:23 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 31 Dec 2009 08:23:09 +0000
(08:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92349
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 8ee364edbb3d342e2ac465bf28e3caabaeff094f..d3c9d7794f1e3cb576214e55785289b3c6c72b6f 100644
(file)
--- a/
lib/VMCore/AsmWriter.cpp
+++ b/
lib/VMCore/AsmWriter.cpp
@@
-2041,7
+2041,7
@@
void Value::print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW) const {
if (const Instruction *I = dyn_cast<Instruction>(this)) {
const Function *F = I->getParent() ? I->getParent()->getParent() : 0;
SlotTracker SlotTable(F);
- AssemblyWriter W(OS, SlotTable, getModuleFromVal(
F
), AAW);
+ AssemblyWriter W(OS, SlotTable, getModuleFromVal(
I
), AAW);
W.printInstruction(*I);
} else if (const BasicBlock *BB = dyn_cast<BasicBlock>(this)) {
SlotTracker SlotTable(BB->getParent());