Skip to content

Commit 6e0dbf5

Browse files
Update clang/lib/Serialization/ASTWriter.cpp
Co-authored-by: Chuanqi Xu <[email protected]>
1 parent 300707b commit 6e0dbf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Serialization/ASTWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6094,7 +6094,7 @@ void ASTWriter::WriteDeclUpdatesBlocks(ASTContext &Context,
60946094
// to skip over the lazy body to reach statements for other records.
60956095
if (Kind == UPD_CXX_ADDED_FUNCTION_DEFINITION) {
60966096
assert(isa<FunctionDecl>(D) && "expected FunctionDecl");
6097-
HasUpdatedBody = dyn_cast<FunctionDecl>(D)->hasBody();
6097+
HasUpdatedBody = cast<FunctionDecl>(D)->hasBody();
60986098
} else if (Kind == UPD_CXX_ADDED_VAR_DEFINITION)
60996099
HasAddedVarDefinition = true;
61006100
else

0 commit comments

Comments
 (0)