[Lldb-commits] [PATCH] Fix resolution of certain recursive types.

Stephane Sezer sas at cd80.net
Mon Mar 23 12:46:59 PDT 2015


Hi clayborg,

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.

Fixes https://llvm.org/bugs/show_bug.cgi?id=20486.

Patch by Cristian Hancila.

http://reviews.llvm.org/D8561

Files:
  include/lldb/Expression/ClangASTSource.h
  source/Expression/ClangASTSource.cpp
  source/Symbol/ClangASTImporter.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8561.22506.patch
Type: text/x-patch
Size: 3924 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150323/af3ead7f/attachment.bin>


More information about the lldb-commits mailing list