mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-04 10:59:03 +02:00
Simplify code by using the right type.
Removes some comditional compiling by replacing unsigned with llvm::Attributes.
This commit is contained in:
@@ -34,11 +34,7 @@ bool DtoIsPassedByRef(Type* type)
|
||||
return (t == Tstruct || t == Tsarray);
|
||||
}
|
||||
|
||||
#if LDC_LLVM_VER == 300
|
||||
unsigned DtoShouldExtend(Type* type)
|
||||
#else
|
||||
llvm::Attributes DtoShouldExtend(Type* type)
|
||||
#endif
|
||||
{
|
||||
type = type->toBasetype();
|
||||
if (type->isintegral())
|
||||
|
||||
Reference in New Issue
Block a user