mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-11 21:37:17 +03:00
Cleanup: Remove unused code in backend, silence some warnings.
This removed quite some clutter that has presumably piled up because LDC is seldom built with a lot of warnings enabled due to DMDFE.
This commit is contained in:
parent
009ce6e161
commit
7a24e12736
15 changed files with 25 additions and 69 deletions
|
@ -303,7 +303,7 @@ LLValue* DtoNestedContext(Loc loc, Dsymbol* sym)
|
|||
return llvm::UndefValue::get(getVoidPtrType());
|
||||
}
|
||||
if (nestedCtx == NCHybrid) {
|
||||
class FuncDeclaration* fd = 0;
|
||||
struct FuncDeclaration* fd = 0;
|
||||
#if DMDV2
|
||||
if (AggregateDeclaration *ad = sym->isAggregateDeclaration())
|
||||
// If sym is a nested struct or a nested class, pass the frame
|
||||
|
@ -499,7 +499,7 @@ void DtoCreateNestedContext(FuncDeclaration* fd) {
|
|||
if (parfd->isStatic())
|
||||
break;
|
||||
}
|
||||
else if (ClassDeclaration* parcd = par->isClassDeclaration())
|
||||
else if (par->isClassDeclaration())
|
||||
{
|
||||
// nothing needed
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue