]> granicus.if.org Git - clang/commitdiff
Update and expand comment.
authorEric Christopher <echristo@apple.com>
Wed, 19 Sep 2012 22:01:42 +0000 (22:01 +0000)
committerEric Christopher <echristo@apple.com>
Wed, 19 Sep 2012 22:01:42 +0000 (22:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164254 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index d3391b79af4f806d2c27fcf572f25f2b27bba45d..10ad7af19e01e8eea78bcac3ba337c6ccbaa58c8 100644 (file)
@@ -793,8 +793,6 @@ CollectRecordFields(const RecordDecl *record, llvm::DIFile tunit,
     for (CXXRecordDecl::capture_const_iterator I = CXXDecl->captures_begin(),
            E = CXXDecl->captures_end(); I != E; ++I, ++Field, ++fieldno) {
       const LambdaExpr::Capture C = *I;
-      // TODO: Need to handle 'this' in some way by probably renaming the
-      // this of the lambda class and having a field member of 'this'.
       if (C.capturesVariable()) {
         VarDecl *V = C.getCapturedVar();
         llvm::DIFile VUnit = getOrCreateFile(C.getLocation());
@@ -810,6 +808,10 @@ CollectRecordFields(const RecordDecl *record, llvm::DIFile tunit,
                             VUnit, RecordTy);
         elements.push_back(fieldType);
       } else {
+        // TODO: Need to handle 'this' in some way by probably renaming the
+        // this of the lambda class and having a field member of 'this' or
+        // by use AT_object_pointer for the function and having that be
+        // used as 'this' for semantic references.
         assert(C.capturesThis() && "Field that isn't captured and isn't this?");
         FieldDecl *f = *Field;
         llvm::DIFile VUnit = getOrCreateFile(f->getLocation());