diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-10-01 20:11:19 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-10-01 20:11:19 +0000 |
| commit | 1d87bcf4909b06dcd86320722653341f08b8b396 (patch) | |
| tree | c96a6176090b950f14ac44061b68f243a1920fe3 /lib/AsmParser | |
| parent | cfe26c930ae691ff3012736555846c45087e1a9e (diff) | |
| download | external_llvm-1d87bcf4909b06dcd86320722653341f08b8b396.zip external_llvm-1d87bcf4909b06dcd86320722653341f08b8b396.tar.gz external_llvm-1d87bcf4909b06dcd86320722653341f08b8b396.tar.bz2 | |
Convert more code to use new style casts
Eliminate old style casts from value.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser')
| -rw-r--r-- | lib/AsmParser/ParserInternals.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/AsmParser/ParserInternals.h b/lib/AsmParser/ParserInternals.h index 88986c2..bedb65f 100644 --- a/lib/AsmParser/ParserInternals.h +++ b/lib/AsmParser/ParserInternals.h @@ -167,10 +167,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!"); - } + MethPlaceHolderHelper(const Type *Ty) : Method(cast<const MethodType>(Ty)) {} }; typedef PlaceholderValue<TypePlaceHolderHelper> TypePlaceHolder; |
