]> granicus.if.org Git - clang/commitdiff
Fix the build
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 31 Oct 2014 17:18:09 +0000 (17:18 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 31 Oct 2014 17:18:09 +0000 (17:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220974 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Decl.cpp

index c979759b7ad7307e688e63793f183d08398525bb..71ea7aa91de53d6348ed0e24fa412f2ce57afcc9 100644 (file)
@@ -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 &&