[all-commits] [llvm/llvm-project] 4f14c1: [LLDB] Remove uneeded CopyType from BlockPointerSy...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Tue Feb 9 16:11:51 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f14c17df70916913d71914343dd4f6c709e218d
      https://github.com/llvm/llvm-project/commit/4f14c17df70916913d71914343dd4f6c709e218d
  Author: Shafik Yaghmour <syaghmour at apple.com>
  Date:   2021-02-09 (Tue, 09 Feb 2021)

  Changed paths:
    M lldb/source/Plugins/Language/CPlusPlus/BlockPointer.cpp
    M lldb/test/API/lang/c/blocks/TestBlocks.py
    M lldb/test/API/lang/c/blocks/main.c

  Log Message:
  -----------
  [LLDB] Remove uneeded CopyType from BlockPointerSyntheticFrontEnd

BlockPointerSyntheticFrontEnd does a CopyType which results in it copying the type
back into its own context. This will result in a call to ASTImporterDelegate::setOrigin
with &decl->getASTContext() == origin.ctx this can result in an infinite recursion
later on in ASTImporter since it will attempt to find the decl in its origin which will be itself.

Differential Revision: https://reviews.llvm.org/D96366




More information about the All-commits mailing list