aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-31 08:23:09 +0000
committerChris Lattner <sabre@nondot.org>2009-12-31 08:23:09 +0000
commitdbe85bffd775620d7c93c041ad5bd49801eb9d14 (patch)
tree6ca445556e6dab3e3d7fdcb65210ca3beda8ec22 /lib/VMCore
parentf3f55a9bc1ce62fad7faecff7bd83565d569dee8 (diff)
downloadexternal_llvm-dbe85bffd775620d7c93c041ad5bd49801eb9d14.zip
external_llvm-dbe85bffd775620d7c93c041ad5bd49801eb9d14.tar.gz
external_llvm-dbe85bffd775620d7c93c041ad5bd49801eb9d14.tar.bz2
fix refactoro
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/AsmWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index 8ee364e..d3c9d77 100644
--- 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());