Skip to content

Commit a73a808

Browse files
authored
Merge pull request #34117 from benlangmuir/cache-size-off-by-3
[code-completion] Fix cache writer for non-decl kind
2 parents 8920da2 + 28228eb commit a73a808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IDE/CodeCompletionCache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static void writeCachedModule(llvm::raw_ostream &out,
343343
if (R->getKind() == CodeCompletionResult::Declaration)
344344
LE.write(static_cast<uint8_t>(R->getAssociatedDeclKind()));
345345
else
346-
LE.write(~static_cast<uint8_t>(0u));
346+
LE.write(static_cast<uint8_t>(~0u));
347347
if (R->isOperator())
348348
LE.write(static_cast<uint8_t>(R->getOperatorKind()));
349349
else

0 commit comments

Comments
 (0)