Author: Haojian Wu Date: 2025-07-01T22:33:23+02:00 New Revision: ac76e4d8a9aedc23123571b3801684babb78424f
URL: https://github.com/llvm/llvm-project/commit/ac76e4d8a9aedc23123571b3801684babb78424f DIFF: https://github.com/llvm/llvm-project/commit/ac76e4d8a9aedc23123571b3801684babb78424f.diff LOG: [Serialization] Use SourceLocation::UIntTy for the offset type, NFC Added: Modified: clang/lib/Serialization/ASTWriter.cpp Removed: ################################################################################ diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index 06cd6c7305114..874b24b532b06 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/lib/Serialization/ASTWriter.cpp @@ -6652,7 +6652,7 @@ void ASTWriter::AddFileID(FileID FID, RecordDataImpl &Record) { SourceLocationEncoding::RawLocEncoding ASTWriter::getRawSourceLocationEncoding(SourceLocation Loc) { - unsigned BaseOffset = 0; + SourceLocation::UIntTy BaseOffset = 0; unsigned ModuleFileIndex = 0; // See SourceLocationEncoding.h for the encoding details. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits