From 38569343868ee3dad90dcdddfb9fee1ca0bcf25f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 1 Oct 2001 20:11:19 +0000 Subject: Convert more code to use new style casts Eliminate old style casts from value.h llvm-svn: 696 --- llvm/lib/Bytecode/Reader/ReaderInternals.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Bytecode/Reader/ReaderInternals.h') diff --git a/llvm/lib/Bytecode/Reader/ReaderInternals.h b/llvm/lib/Bytecode/Reader/ReaderInternals.h index ed4f1a4bba2..cf5a43ef3bb 100644 --- a/llvm/lib/Bytecode/Reader/ReaderInternals.h +++ b/llvm/lib/Bytecode/Reader/ReaderInternals.h @@ -129,8 +129,7 @@ struct BBPlaceHolderHelper : public BasicBlock { struct MethPlaceHolderHelper : public Method { MethPlaceHolderHelper(const Type *Ty) - : Method((const MethodType*)Ty) { - assert(Ty->isMethodType() && "Method placeholders must be method types!"); + : Method(cast(Ty)) { } }; -- cgit v1.2.3