Add support for new style casts
llvm-svn: 694
diff --git a/llvm/lib/Target/Sparc/EmitAssembly.cpp b/llvm/lib/Target/Sparc/EmitAssembly.cpp
index c37dae1..9001c74 100644
--- a/llvm/lib/Target/Sparc/EmitAssembly.cpp
+++ b/llvm/lib/Target/Sparc/EmitAssembly.cpp
@@ -158,8 +158,8 @@
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 << ">";
}