[clang] [PATCH] [clang][modules] Fix serialization and de-serialization of PCH module file refs (#105994) (PR #132802)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 24 18:47:15 PDT 2025
================
@@ -9615,7 +9615,7 @@ ModuleFile *ASTReader::getLocalModuleFile(ModuleFile &M, unsigned ID) const {
// It's a prefix (preamble, PCH, ...). Look it up by index.
unsigned IndexFromEnd = ID >> 1;
assert(IndexFromEnd && "got reference to unknown module file");
- return getModuleManager().pch_modules().end()[-IndexFromEnd];
+ return getModuleManager().pch_modules().end()[-static_cast<int>(IndexFromEnd)];
----------------
ChuanqiXu9 wrote:
Why is this needed?
https://github.com/llvm/llvm-project/pull/132802
More information about the cfe-commits
mailing list