Fix the build
llvm-svn: 220974
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index c979759..71ea7aa 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -3325,7 +3325,7 @@
}
void FieldDecl::setCapturedVLAType(const VariableArrayType *VLAType) {
- assert((RD->isLambda() || RD->isCapturedRecord()) &&
+ assert((getParent()->isLambda() || getParent()->isCapturedRecord()) &&
"capturing type in non-lambda or captured record.");
assert(InitStorage.getInt() == ISK_BitWidthOrNothing &&
InitStorage.getPointer() == nullptr &&