summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/MemDepPrinter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-20 22:37:41 +0000
committerDan Gohman <gohman@apple.com>2010-10-20 22:37:41 +0000
commit1b85604130ce4a4e4630b82270160a8cb2efbc93 (patch)
tree6c2f7287500f5fb4df0979b07d47e75086822673 /llvm/lib/Analysis/MemDepPrinter.cpp
parent80b8817c9d3606a8b3e73704c3f1aabfd0195e53 (diff)
downloadbcm5719-llvm-1b85604130ce4a4e4630b82270160a8cb2efbc93.tar.gz
bcm5719-llvm-1b85604130ce4a4e4630b82270160a8cb2efbc93.zip
Memdep says that an instruction clobbers itself
when it means there is no specific clobber instruction. llvm-svn: 116960
Diffstat (limited to 'llvm/lib/Analysis/MemDepPrinter.cpp')
-rw-r--r--llvm/lib/Analysis/MemDepPrinter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/MemDepPrinter.cpp b/llvm/lib/Analysis/MemDepPrinter.cpp
index 841f4b6b4ad..597daff8db2 100644
--- a/llvm/lib/Analysis/MemDepPrinter.cpp
+++ b/llvm/lib/Analysis/MemDepPrinter.cpp
@@ -150,7 +150,10 @@ void MemDepPrinter::print(raw_ostream &OS, const Module *M) const {
WriteAsOperand(OS, DepBB, /*PrintType=*/false, M);
}
OS << " from: ";
- DepInst->print(OS);
+ if (DepInst == Inst)
+ OS << "<unspecified>";
+ else
+ DepInst->print(OS);
OS << "\n";
}
OpenPOWER on IntegriCloud