Fix the B3 build with GCC 4.9.3
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Jan 2016 23:21:46 +0000 (23:21 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Jan 2016 23:21:46 +0000 (23:21 +0000)
https://bugs.webkit.org/show_bug.cgi?id=151624

Reviewed by Filip Pizlo.

Due to GCC 4.9's compiler issue[1], method calls inside (2 or so) nested lambdas need to use `this` to avoid internal compiler errors.
[1]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62272

* b3/air/AirIteratedRegisterCoalescing.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195788 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/b3/air/AirIteratedRegisterCoalescing.cpp

index 934c42f..90bc708 100644 (file)
@@ -1,3 +1,15 @@
+2016-01-28  Yusuke Suzuki  <utatane.tea@gmail.com>
+
+        Fix the B3 build with GCC 4.9.3
+        https://bugs.webkit.org/show_bug.cgi?id=151624
+
+        Reviewed by Filip Pizlo.
+
+        Due to GCC 4.9's compiler issue[1], method calls inside (2 or so) nested lambdas need to use `this` to avoid internal compiler errors.
+        [1]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62272
+
+        * b3/air/AirIteratedRegisterCoalescing.cpp:
+
 2016-01-28  Filip Pizlo  <fpizlo@apple.com>
 
         LowerToAir::preferRightForResult() should resolve use count ties by selecting the child that is closest in an idom walk
index 02ef741..9996b99 100644 (file)
@@ -834,7 +834,7 @@ private:
                         if (argType != type)
                             return;
                         
-                        addEdge(arg, otherArg);
+                        this->addEdge(arg, otherArg);
                     });
             });