[clang] [Safe Buffers] Serialize unsafe_buffer_usage pragmas (PR #92031)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 6 23:22:50 PDT 2024
================
@@ -2439,6 +2440,12 @@ void ASTWriter::WritePreprocessor(const Preprocessor &PP, bool IsModule) {
Record.clear();
}
+ // Write the safe buffer opt-out region map in PP
+ for (SourceLocation &S : PP.serializeSafeBufferOptOutMap())
+ AddSourceLocation(std::move(S), Record);
----------------
ChuanqiXu9 wrote:
Generally we won't move source location.
https://github.com/llvm/llvm-project/pull/92031
More information about the cfe-commits
mailing list