From: David Blaikie Date: Fri, 31 Oct 2014 17:18:09 +0000 (+0000) Subject: Fix the build X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a1d9be787be1930c13bc32d9afe2a072fd09b69;p=clang Fix the build git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220974 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index c979759b7a..71ea7aa91d 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -3325,7 +3325,7 @@ SourceRange FieldDecl::getSourceRange() const { } 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 &&