forked from OSchip/llvm-project
clang/lib/AST/Decl.cpp: Tweak isVLATypeCapturingAllowed() for -Asserts. [-Wunused-function]
llvm-svn: 220853
This commit is contained in:
parent
a094f0428b
commit
639728da35
|
@ -3330,8 +3330,10 @@ SourceRange FieldDecl::getSourceRange() const {
|
|||
}
|
||||
|
||||
void FieldDecl::setCapturedVLAType(const VariableArrayType *VLAType) {
|
||||
assert(isVLATypeCapturingAllowed(getParent()) &&
|
||||
bool fVLATypeCapturingAllowed = isVLATypeCapturingAllowed(getParent());
|
||||
assert(fVLATypeCapturingAllowed &&
|
||||
"capturing type in non-lambda or captured record.");
|
||||
(void)fVLATypeCapturingAllowed;
|
||||
assert(InitStorage.getInt() == ISK_BitWidthOrNothing &&
|
||||
InitStorage.getPointer() == nullptr &&
|
||||
"bit width, initializer or captured type already set");
|
||||
|
|
Loading…
Reference in New Issue