[clang][Interp] Use placement new to construct opcode args into vector
authorTimm Bäder <tbaeder@redhat.com>
Wed, 23 Nov 2022 09:48:45 +0000 (10:48 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Wed, 30 Nov 2022 09:09:52 +0000 (10:09 +0100)
commitaaf73ae266db44fce107a0b73fcb33527bfb52eb
tree46536b7d8228ec82b71ebd91cfd7f786ee5b0559
parentc3380c32f856925733a113c12cdeb3c3cb369f1f
[clang][Interp] Use placement new to construct opcode args into vector

This way we're invoking the copy constructor, which might be necessary
if the argument is not trivially constructible.

Differential Revision: https://reviews.llvm.org/D138554
clang/lib/AST/Interp/ByteCodeEmitter.cpp