From b00c582b6d40e6b9ff2d1ed4f5eaf7930e792ace Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 2 Oct 2001 03:41:24 +0000 Subject: Commit more code over to new cast style git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@697 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/ConstantReader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Bytecode/Reader/ConstantReader.cpp') diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp index aaecedddfa..4c7f7c9ac2 100644 --- a/lib/Bytecode/Reader/ConstantReader.cpp +++ b/lib/Bytecode/Reader/ConstantReader.cpp @@ -229,7 +229,7 @@ bool BytecodeParser::parseConstPoolValue(const uchar *&Buf, abort(); case Type::ArrayTyID: { - const ArrayType *AT = (const ArrayType*)Ty; + const ArrayType *AT = cast(Ty); unsigned NumElements; if (AT->isSized()) // Sized array, # elements stored in type! NumElements = (unsigned)AT->getNumElements(); @@ -249,7 +249,7 @@ bool BytecodeParser::parseConstPoolValue(const uchar *&Buf, } case Type::StructTyID: { - const StructType *ST = Ty->castStructType(); + const StructType *ST = cast(Ty); const StructType::ElementTypes &ET = ST->getElementTypes(); vector Elements; @@ -267,7 +267,7 @@ bool BytecodeParser::parseConstPoolValue(const uchar *&Buf, } case Type::PointerTyID: { - const PointerType *PT = Ty->castPointerType(); + const PointerType *PT = cast(Ty); unsigned SubClass; if (read_vbr(Buf, EndBuf, SubClass)) return failure(true); if (SubClass != 0) return failure(true); -- cgit v1.2.3