[all-commits] [llvm/llvm-project] 6b0b30: Fix regression from Deferred Concepts with lambda ...

Erich Keane via All-commits all-commits at lists.llvm.org
Tue Sep 27 06:32:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b0b306e6221ba3f8f02944b8e5a8140f4d52324
      https://github.com/llvm/llvm-project/commit/6b0b306e6221ba3f8f02944b8e5a8140f4d52324
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2022-09-27 (Tue, 27 Sep 2022)

  Changed paths:
    M clang/lib/Sema/SemaConcept.cpp
    A clang/test/SemaTemplate/concepts-lambda.cpp

  Log Message:
  -----------
  Fix regression from Deferred Concepts with lambda in var init

As reported in GH #57945, this would crash because the decl context for
the lambda was being loaded via 'getNonClosureContext', which only gets
CODE contexts, so a global lambda was getting 'nullptr' here instead.
This patch does some work to make sure we get a valid/valuable
declcontext here instead.




More information about the All-commits mailing list