mirror of
https://github.com/avast/retdec.git
synced 2024-11-27 06:40:29 +00:00
Merge pull request #1169 from avast/fix-dotnet-class-namespace-loop
Ignore self-references when reconstructing full names of nested classes
This commit is contained in:
commit
4e7b52890d
@ -666,6 +666,10 @@ bool DotnetTypeReconstructor::reconstructNestedClasses()
|
||||
if (enclosingItr == defClassTable.end())
|
||||
continue;
|
||||
|
||||
// Ignore self-references
|
||||
if (nestedItr == enclosingItr)
|
||||
continue;
|
||||
|
||||
const std::string& namespac = nestedItr->second->getNameSpace();
|
||||
if (namespac.empty())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user