mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-12 05:47:11 +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;
|
for (Dsymbol *parent = sym->parent; parent; parent = parent->parent) {
|
||||||
parent = parent->toParent2()) {
|
|
||||||
if (FuncDeclaration *fd = parent->isFuncDeclaration()) {
|
if (FuncDeclaration *fd = parent->isFuncDeclaration()) {
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue