summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-08-24 18:51:20 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-08-24 18:51:20 +0000
commit40ab164d3ae6fddb279ae49ab2f9756b466c640a (patch)
treee9cb552ee68a9fc0043fb304365023501c55cbcc /lib/CodeGen/MachineInstr.cpp
parent42387462303a8eb917569305d5390c8da64ac82f (diff)
downloadllvm-40ab164d3ae6fddb279ae49ab2f9756b466c640a.tar.gz
llvm-40ab164d3ae6fddb279ae49ab2f9756b466c640a.tar.bz2
llvm-40ab164d3ae6fddb279ae49ab2f9756b466c640a.tar.xz
Print PseudoSourceValue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r--lib/CodeGen/MachineInstr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index 00987d76fc..41df5df5a5 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -756,8 +756,8 @@ void MachineInstr::print(std::ostream &OS, const TargetMachine *TM) const {
OS << "<unknown>";
else if (!V->getName().empty())
OS << V->getName();
- else if (isa<PseudoSourceValue>(V))
- OS << *V;
+ else if (const PseudoSourceValue *PSV = dyn_cast<PseudoSourceValue>(V))
+ OS << *PSV;
else
OS << V;