CGBlocks.cpp - assert non-null CGF pointer. NFCI.

Fixes static analyzer warning.
This commit is contained in:
Simon Pilgrim 2020-09-16 12:11:29 +01:00
parent dbd45b2db8
commit 4abb5cd839
1 changed files with 1 additions and 1 deletions

View File

@ -580,7 +580,7 @@ static void computeBlockInfo(CodeGenModule &CGM, CodeGenFunction *CGF,
// Since a __block variable cannot be captured by lambdas, its type and
// the capture field type should always match.
assert(getCaptureFieldType(*CGF, CI) == variable->getType() &&
assert(CGF && getCaptureFieldType(*CGF, CI) == variable->getType() &&
"capture type differs from the variable type");
layout.push_back(BlockLayoutChunk(align, CGM.getPointerSize(),
Qualifiers::OCL_None, &CI,