forked from OSchip/llvm-project
CGBlocks.cpp - assert non-null CGF pointer. NFCI.
Fixes static analyzer warning.
This commit is contained in:
parent
dbd45b2db8
commit
4abb5cd839
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue