Fix a bug found while trying to compile JavaScriptCore with clang++.
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Dec 2009 20:31:57 +0000 (20:31 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Dec 2009 20:31:57 +0000 (20:31 +0000)
Reviewed by Gavin Barraclough.

* yarr/RegexPattern.h:
(JSC::Yarr::PatternTerm::PatternTerm): Don't self assign here.  Use false instead.

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

JavaScriptCore/ChangeLog
JavaScriptCore/yarr/RegexPattern.h

index f4b0795..d23dbfd 100644 (file)
@@ -1,3 +1,12 @@
+2009-12-09  Sam Weinig  <sam@webkit.org>
+
+        Reviewed by Gavin Barraclough.
+
+        Fix a bug found while trying to compile JavaScriptCore with clang++.
+
+        * yarr/RegexPattern.h:
+        (JSC::Yarr::PatternTerm::PatternTerm): Don't self assign here.  Use false instead.
+
 2009-12-09  Anders Carlsson  <andersca@apple.com>
 
         Reviewed by Sam Weinig.
index a451131..dd7512d 100644 (file)
@@ -137,7 +137,7 @@ struct PatternTerm {
 
     PatternTerm(unsigned spatternId)
         : type(TypeBackReference)
-        , invertOrCapture(invertOrCapture)
+        , invertOrCapture(false)
     {
         subpatternId = spatternId;
         quantityType = QuantifierFixedCount;