]> granicus.if.org Git - clang/commitdiff
Remove FIXME: as Eli points out, the behavior here is now correct.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 24 Feb 2012 23:21:24 +0000 (23:21 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 24 Feb 2012 23:21:24 +0000 (23:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151405 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/lambda-expressions.cpp

index e1b0f49cc8dcf8d5758f73fdd9f16a1e4db5265b..7e53754a52708ff4a41057afa0e1b0c6c29d0c72 100644 (file)
@@ -116,15 +116,13 @@ namespace NullPtr {
       int &k = f(m); // a null pointer constant
     } ();
 
-    // FIXME: At least the second of these cases should probably not be
-    // considered to be a null pointer constant.
     [=] () -> bool {
-      int &k = f(m);  // a null pointer constant?
-      return &m == 0; // no, captured!
+      int &k = f(m); // a null pointer constant
+      return &m == 0;
     } ();
 
     [m] {
-      int &k = f(m); // a null pointer constant?
+      int &k = f(m); // a null pointer constant
     } ();
   }
 }