[cfe-commits] r118775 - /cfe/trunk/include/clang/Sema/Initialization.h
Francois Pichet
pichet2000 at gmail.com
Wed Nov 10 19:49:37 PST 2010
Author: fpichet
Date: Wed Nov 10 21:49:37 2010
New Revision: 118775
URL: http://llvm.org/viewvc/llvm-project?rev=118775&view=rev
Log:
Remove some unnecessary reinterpret_cast.
Modified:
cfe/trunk/include/clang/Sema/Initialization.h
Modified: cfe/trunk/include/clang/Sema/Initialization.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Initialization.h?rev=118775&r1=118774&r2=118775&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Initialization.h (original)
+++ cfe/trunk/include/clang/Sema/Initialization.h Wed Nov 10 21:49:37 2010
@@ -118,12 +118,12 @@
/// \brief Create the initialization entity for a variable.
InitializedEntity(VarDecl *Var)
: Kind(EK_Variable), Parent(0), Type(Var->getType()),
- VariableOrMember(reinterpret_cast<DeclaratorDecl*>(Var)) { }
+ VariableOrMember(Var) { }
/// \brief Create the initialization entity for a parameter.
InitializedEntity(ParmVarDecl *Parm)
: Kind(EK_Parameter), Parent(0), Type(Parm->getType().getUnqualifiedType()),
- VariableOrMember(reinterpret_cast<DeclaratorDecl*>(Parm)) { }
+ VariableOrMember(Parm) { }
/// \brief Create the initialization entity for the result of a
/// function, throwing an object, performing an explicit cast, or
@@ -139,7 +139,7 @@
/// \brief Create the initialization entity for a member subobject.
InitializedEntity(FieldDecl *Member, const InitializedEntity *Parent)
: Kind(EK_Member), Parent(Parent), Type(Member->getType()),
- VariableOrMember(reinterpret_cast<DeclaratorDecl*>(Member)) { }
+ VariableOrMember(Member) { }
/// \brief Create the initialization entity for an array element.
InitializedEntity(ASTContext &Context, unsigned Index,
More information about the cfe-commits
mailing list