davidtrevelyan wrote: Many thanks @vitalybuka - understood. Thanks everyone for the valuable inputs, I've drafted a PR for removing the `std::variant` in rtsan here: https://github.com/llvm/llvm-project/pull/109786 https://github.com/llvm/llvm-project/pull/109715