[clang] ac76e4d - [Serialization] Use SourceLocation::UIntTy for the offset type, NFC
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 1 13:34:21 PDT 2025
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.
More information about the cfe-commits
mailing list