Add support for new style casts

llvm-svn: 694
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp
index da48018..04a0ca4 100644
--- a/llvm/lib/Bytecode/Writer/Writer.cpp
+++ b/llvm/lib/Bytecode/Writer/Writer.cpp
@@ -108,7 +108,7 @@
 	//     << Out.size() << "\n";
 	outputConstant(CPV);
       } else {
-	const Type *Ty = V->castTypeAsserting();
+	const Type *Ty = cast<const Type>(V);
 	outputType(Ty);
       }
     }