diff options
author | Richard Smith <richard@metafoo.co.uk> | 2020-10-20 17:35:15 -0700 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2020-10-20 17:37:07 -0700 |
commit | 15e772e8dc39f609115430f39078fbe58812fddb (patch) | |
tree | 6b30e9c87a72bd7836b5e13a2b92a8a1ba334ff2 /llvm/lib/CodeGen/StackMaps.cpp | |
parent | ebdcef20ce2921d1b6e8463ecf4031396cef79dc (diff) | |
download | llvm-15e772e8dc39f609115430f39078fbe58812fddb.zip llvm-15e772e8dc39f609115430f39078fbe58812fddb.tar.gz llvm-15e772e8dc39f609115430f39078fbe58812fddb.tar.bz2 |
Don't instantiate lambda closure types in default member initializers
when instantiating the enclosing class.
We'll build new lambda closure types if and when we instantiate the
default member initializer, and instantiating the closure type by itself
can go wrong in cases where we fully-instantiate nested classes (in
explicit instantiations of the enclosing class and when the enclosing
class is a local class) -- we will instantiate the 'operator()' as a
regular function rather than as a lambda call operator, so it doesn't
get to use its captures, has the wrong 'this' type, etc.
Diffstat (limited to 'llvm/lib/CodeGen/StackMaps.cpp')
0 files changed, 0 insertions, 0 deletions