Skip to content

Commit 2e8b1bd

Browse files
author
git apple-llvm automerger
committed
Merge commit '37eb0d4948da' from llvm.org/main into next
2 parents 6fd498c + 37eb0d4 commit 2e8b1bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Serialization/GeneratePCH.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ ReducedBMIGenerator::ReducedBMIGenerator(Preprocessor &PP,
102102

103103
Module *ReducedBMIGenerator::getEmittingModule(ASTContext &Ctx) {
104104
Module *M = Ctx.getCurrentNamedModule();
105-
assert(M->isNamedModuleUnit() &&
105+
assert(M && M->isNamedModuleUnit() &&
106106
"ReducedBMIGenerator should only be used with C++20 Named modules.");
107107
return M;
108108
}

0 commit comments

Comments
 (0)