llvm-project
3d68cfd4 - [NFC][Clang][CodeGen] Take const& in deleted copy assignment operators (#241713)

Commit
1 day ago
[NFC][Clang][CodeGen] Take const& in deleted copy assignment operators (#241713) 436f391d1d56 (#154671) deleted the copy assignment operators of `ApplyInlineDebugLocation` and `SanitizerDebugLocation` with a non-const parameter. That still leaves the classes non-copyable, but it breaks `std::optional<SanitizerDebugLocation>`: libstdc++ fails to default the copy assignment of its storage. Use `const &`, matching the deleted copy constructors. Needed by #241646. Assisted-by: Gemini
Author
Parents
Loading