[all-commits] [llvm/llvm-project] b5a9ad: [clang] Create alloca to pass into static lambda
Vitaly Buka via All-commits
all-commits at lists.llvm.org
Tue Aug 23 13:53:39 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b5a9adf1f533c6403d780bb127bda4b53f7dc7ed
https://github.com/llvm/llvm-project/commit/b5a9adf1f533c6403d780bb127bda4b53f7dc7ed
Author: Vitaly Buka <vitalybuka at google.com>
Date: 2022-08-23 (Tue, 23 Aug 2022)
Changed paths:
M clang/lib/CodeGen/CGClass.cpp
M clang/test/CodeGenCXX/lambda-to-function-pointer-conversion.cpp
Log Message:
-----------
[clang] Create alloca to pass into static lambda
"this" parameter of lambda if undef, notnull and differentiable.
So we need to pass something consistent.
Any alloca will work. It will be eliminated as unused later by optimizer.
Otherwise we generate code which Msan is expected to catch.
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D132275
More information about the All-commits
mailing list