Skip to content

Commit 1565310

Browse files
[Serialization] Remove an unnecessary cast (NFC) (#147204)
IndexFromEnd is already of int.
1 parent 29b2b22 commit 1565310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Serialization/ASTReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9682,7 +9682,7 @@ ModuleFile *ASTReader::getLocalModuleFile(ModuleFile &M, unsigned ID) const {
96829682
// It's a prefix (preamble, PCH, ...). Look it up by index.
96839683
int IndexFromEnd = static_cast<int>(ID >> 1);
96849684
assert(IndexFromEnd && "got reference to unknown module file");
9685-
return getModuleManager().pch_modules().end()[-static_cast<int>(IndexFromEnd)];
9685+
return getModuleManager().pch_modules().end()[-IndexFromEnd];
96869686
}
96879687
}
96889688

0 commit comments

Comments
 (0)