diff options
Diffstat (limited to 'llvm/lib/Target/Sparc/EmitAssembly.cpp')
-rw-r--r-- | llvm/lib/Target/Sparc/EmitAssembly.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Sparc/EmitAssembly.cpp b/llvm/lib/Target/Sparc/EmitAssembly.cpp index c37dae16ac5..9001c746e74 100644 --- a/llvm/lib/Target/Sparc/EmitAssembly.cpp +++ b/llvm/lib/Target/Sparc/EmitAssembly.cpp @@ -158,8 +158,8 @@ void SparcAsmPrinter::emitMachineInst(const MachineInstr *MI) { const Value *Val = Op.getVRegValue(); if (!Val) { Out << "\t<*NULL Value*>"; - } else if (Val->isBasicBlock()) { - Out << getID(Val->castBasicBlockAsserting()); + } else if (const BasicBlock *BB = dyn_cast<const BasicBlock>(Val)) { + Out << getID(BB); } else { Out << "<unknown value=" << Val << ">"; } |