diff options
author | Stephane Sezer <sas@cd80.net> | 2015-04-08 21:52:45 +0000 |
---|---|---|
committer | Stephane Sezer <sas@cd80.net> | 2015-04-08 21:52:45 +0000 |
commit | 9901e9c6c8cdfe4aa01cec97b3273119228af51b (patch) | |
tree | 1270445586e0856b263c1722256068819345144d /lld/lib/Core/File.cpp | |
parent | 576ff1283997d67e89bc958a1eeb25215a3c66c2 (diff) | |
download | bcm5719-llvm-9901e9c6c8cdfe4aa01cec97b3273119228af51b.tar.gz bcm5719-llvm-9901e9c6c8cdfe4aa01cec97b3273119228af51b.zip |
Fix resolution of certain recursive types.
Summary:
If a struct type S has a member T that has a member that is a function that
returns a typedef of S* the respective field would be duplicated, which caused
an assert down the line in RecordLayoutBuilder. This patch adds a check that
removes the possibility of trying to resolve the same type twice within the
same callstack.
This commit also adds unit tests for these failures.
Fixes https://llvm.org/bugs/show_bug.cgi?id=20486.
Patch by Cristian Hancila.
Test Plan: Run unit tests.
Reviewers: clayborg spyffe
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D8561
llvm-svn: 234441
Diffstat (limited to 'lld/lib/Core/File.cpp')
0 files changed, 0 insertions, 0 deletions