mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-08 03:46:02 +03:00
[undo superfluous recent change]
This commit is contained in:
parent
599f563fe4
commit
e82c0d91e6
1 changed files with 1 additions and 2 deletions
|
@ -1855,8 +1855,7 @@ FuncDeclaration *getParentFunc(Dsymbol *sym) {
|
|||
}
|
||||
}
|
||||
|
||||
for (Dsymbol *parent = sym->toParent2(); parent;
|
||||
parent = parent->toParent2()) {
|
||||
for (Dsymbol *parent = sym->parent; parent; parent = parent->parent) {
|
||||
if (FuncDeclaration *fd = parent->isFuncDeclaration()) {
|
||||
return fd;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue