[PATCH] D94237: [clang] Use SourceLocations in unions [NFCI]

Mikhail Maltsev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 13 02:46:57 PST 2021


miyuki added a comment.

In D94237#2493844 <https://reviews.llvm.org/D94237#2493844>, @dblaikie wrote:

> Do you need to run the destructor before placement new in these situations?

No, because there is no active union member in any of those situations. And if even if there was an active member, all destructors are trivial anyway.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94237/new/

https://reviews.llvm.org/D94237



More information about the cfe-commits mailing list