[all-commits] [llvm/llvm-project] 5dd7c1: [lldb] Don't create Clang AST nodes in GetDIEClass...

aeubanks via All-commits all-commits at lists.llvm.org
Tue Jan 24 19:14:06 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5dd7c16c3dcfd3154a53ee59e0e092c1e0092197
      https://github.com/llvm/llvm-project/commit/5dd7c16c3dcfd3154a53ee59e0e092c1e0092197
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2023-01-24 (Tue, 24 Jan 2023)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h
    M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
    M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
    A lldb/test/API/lang/cpp/nested-template/Makefile
    A lldb/test/API/lang/cpp/nested-template/TestNestedTemplate.py
    A lldb/test/API/lang/cpp/nested-template/main.cpp

  Log Message:
  -----------
  [lldb] Don't create Clang AST nodes in GetDIEClassTemplateParams

Otherwise we may be inserting a decl into a DeclContext that's not fully defined yet.

This simplifies/removes some clang AST node creation code. Instead, use
clang::printTemplateArgumentList().

Reviewed By: Michael137

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




More information about the All-commits mailing list