diff options
author | Dan Gohman <gohman@apple.com> | 2010-10-20 22:37:41 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-10-20 22:37:41 +0000 |
commit | adb30d211b501a02610b91879b35572d2dfbaf04 (patch) | |
tree | cfbbec16fa318af30a6b93754b526981cab62f69 /lib/Analysis/MemDepPrinter.cpp | |
parent | 75f6df283f726c289b240fe8c5f2f42cdfff5d5f (diff) |
Memdep says that an instruction clobbers itself
when it means there is no specific clobber instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/MemDepPrinter.cpp')
-rw-r--r-- | lib/Analysis/MemDepPrinter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Analysis/MemDepPrinter.cpp b/lib/Analysis/MemDepPrinter.cpp index 841f4b6b4a..597daff8db 100644 --- a/lib/Analysis/MemDepPrinter.cpp +++ b/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"; } |