diff options
author | Richard Smith <richard@metafoo.co.uk> | 2021-02-03 23:31:51 -0800 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2021-02-03 23:38:02 -0800 |
commit | cde8d2fddbff55cae520d90f47f6faf124d3f953 (patch) | |
tree | 7270d94b5c0b18b86060f3c3c5138b1cc20797a4 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 1029c82c1e199d654059fad9e3fbef6e68501863 (diff) | |
download | llvm-cde8d2fddbff55cae520d90f47f6faf124d3f953.zip llvm-cde8d2fddbff55cae520d90f47f6faf124d3f953.tar.gz llvm-cde8d2fddbff55cae520d90f47f6faf124d3f953.tar.bz2 |
Fix miscompile when performing template instantiation of non-dependent
doubly-nested implicit CXXConstructExprs.
Ensure that we transform the parameter initializer using
TransformInitializer rather than TransformExpr so that we properly strip
down and rebuild the initialization, including any necessary
CXXBindTemporaryExprs. Otherwise we can end up forgetting to destroy
temporary objects used to construct a constructor parameter.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions