commit | 4b717c0edc082166e85181fa70e76b17669aebe2 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Oct 01 16:18:37 2001 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Oct 01 16:18:37 2001 +0000 |
tree | 2f9e2828d1baeba95c31078d9181478d54ad37b9 | |
parent | 222b1f5775cfe38e3fc10dbf06e3e88b20b1c88f [diff] [blame] |
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); } }