mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-12 22:14:54 +03:00
Prefer C++-style casts.
This is based on Item 2 of "More Effective C++". In general, the C++ cast operators are more expressive and easy to find, e.g. by grep. Using const_cast also shuts up some compiler warnings.
This commit is contained in:
parent
2dbee75523
commit
311297b096
8 changed files with 18 additions and 18 deletions
|
@ -21,7 +21,7 @@ llvm::Type * IrTypeFunction::buildType()
|
|||
llvm::Type* IrTypeFunction::func2llvm(Type* dt)
|
||||
{
|
||||
llvm::Type* T;
|
||||
TypeFunction* tf = (TypeFunction*)dt;
|
||||
TypeFunction* tf = static_cast<TypeFunction*>(dt);
|
||||
if (tf->funcdecl)
|
||||
T = DtoFunctionType(tf->funcdecl);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue