[all-commits] [llvm/llvm-project] 5ff992: [DEBUG-INFO] Change how we handle auto return type...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Thu Apr 21 14:59:05 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ff992bca208a0e37ca6338fc735aec6aa848b72
  Author: Shafik Yaghmour <syaghmour at apple.com>
  Date:   2022-04-21 (Thu, 21 Apr 2022)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    A clang/test/CodeGenCXX/no_auto_return_lambda.cpp

  Log Message:
  [DEBUG-INFO] Change how we handle auto return types for lambda operator() to be consistent with gcc

D70524 added support for auto return types for C++ member functions. I was
implementing support on the LLDB side for looking up the deduced type.

I ran into trouble with some cases with respect to lambdas. I looked into
how gcc was handling these cases and it appears gcc emits the deduced return type for lambdas.

So I am changing out behavior to match that.

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

More information about the All-commits mailing list