Unreviewed, fix -Wint-in-bool-context warning
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Jan 2019 05:04:21 +0000 (05:04 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Jan 2019 05:04:21 +0000 (05:04 +0000)
https://bugs.webkit.org/show_bug.cgi?id=193483
<rdar://problem/47280522>

* dfg/DFGFixupPhase.cpp:
(JSC::DFG::FixupPhase::addCheckStructureForOriginalStringObjectUse):

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/dfg/DFGFixupPhase.cpp

index d3c6dc8..025740c 100644 (file)
@@ -1,3 +1,12 @@
+2019-01-20  Michael Catanzaro  <mcatanzaro@igalia.com>
+
+        Unreviewed, fix -Wint-in-bool-context warning
+        https://bugs.webkit.org/show_bug.cgi?id=193483
+        <rdar://problem/47280522>
+
+        * dfg/DFGFixupPhase.cpp:
+        (JSC::DFG::FixupPhase::addCheckStructureForOriginalStringObjectUse):
+
 2019-01-20  Saam Barati  <sbarati@apple.com>
 
         Rollout r240210: It broke tests on iOS
index 18b65a3..f49b97d 100644 (file)
@@ -2461,7 +2461,7 @@ private:
 
     void addCheckStructureForOriginalStringObjectUse(UseKind useKind, const NodeOrigin& origin, Node* node)
     {
-        RELEASE_ASSERT(useKind == StringObjectUse || StringOrStringObjectUse);
+        RELEASE_ASSERT(useKind == StringObjectUse || useKind == StringOrStringObjectUse);
 
         StructureSet set;
         set.add(m_graph.globalObjectFor(node->origin.semantic)->stringObjectStructure());