summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangExpressionDeclMap.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-05-15 21:27:16 +0000
committerGreg Clayton <gclayton@apple.com>2015-05-15 21:27:16 +0000
commit67d49488a7f88173e931da7b123f8636f062ef64 (patch)
tree3cf983bb3776ce513db5a7b418f9b19bb33be460 /lldb/source/Expression/ClangExpressionDeclMap.cpp
parentdd9eafb6dbbf423b347a1cce121ae7181ea34619 (diff)
downloadbcm5719-llvm-67d49488a7f88173e931da7b123f8636f062ef64.tar.gz
bcm5719-llvm-67d49488a7f88173e931da7b123f8636f062ef64.zip
Don't allow infininte recursion when trying to resolve re-exported symbols.
<rdar://problem/20821289> llvm-svn: 237477
Diffstat (limited to 'lldb/source/Expression/ClangExpressionDeclMap.cpp')
-rw-r--r--lldb/source/Expression/ClangExpressionDeclMap.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangExpressionDeclMap.cpp b/lldb/source/Expression/ClangExpressionDeclMap.cpp
index 1f377305df0..b36118c616c 100644
--- a/lldb/source/Expression/ClangExpressionDeclMap.cpp
+++ b/lldb/source/Expression/ClangExpressionDeclMap.cpp
@@ -842,6 +842,11 @@ ClangExpressionDeclMap::FindGlobalDataSymbol (Target &target,
reexport_module_sp = target.GetImages().FindFirstModule(reexport_module_spec);
}
}
+ // Don't allow us to try and resolve a re-exported symbol if it is the same
+ // as the current symbol
+ if (name == symbol->GetReExportedSymbolName() && module == reexport_module_sp.get())
+ return NULL;
+
return FindGlobalDataSymbol(target, symbol->GetReExportedSymbolName(), reexport_module_sp.get());
}
}
OpenPOWER on IntegriCloud