summaryrefslogtreecommitdiff
path: root/include/llvm/Assembly/Writer.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-01 18:26:53 +0000
committerChris Lattner <sabre@nondot.org>2001-10-01 18:26:53 +0000
commitcfe26c930ae691ff3012736555846c45087e1a9e (patch)
treeb68b70097da64da9be4a068f62d7ae3d43e05896 /include/llvm/Assembly/Writer.h
parent9636a91649f168f41b477cba705287665e054f79 (diff)
downloadllvm-cfe26c930ae691ff3012736555846c45087e1a9e.tar.gz
llvm-cfe26c930ae691ff3012736555846c45087e1a9e.tar.bz2
llvm-cfe26c930ae691ff3012736555846c45087e1a9e.tar.xz
Add more support for new style casts
Convert more code to use them git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Assembly/Writer.h')
-rw-r--r--include/llvm/Assembly/Writer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Assembly/Writer.h b/include/llvm/Assembly/Writer.h
index aa207604a2..39b0cb6cfb 100644
--- a/include/llvm/Assembly/Writer.h
+++ b/include/llvm/Assembly/Writer.h
@@ -91,7 +91,7 @@ inline ostream &operator<<(ostream &o, const Type *T) {
inline ostream &operator<<(ostream &o, const Value *I) {
switch (I->getValueType()) {
- case Value::TypeVal: return o << I->castTypeAsserting();
+ case Value::TypeVal: return o << cast<const Type>(I);
case Value::ConstantVal: WriteToAssembly((const ConstPoolVal*)I,o);break;
case Value::MethodArgumentVal: return o << I->getType() << " "<< I->getName();
case Value::InstructionVal:WriteToAssembly((const Instruction *)I, o);break;