[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWi...
[WebKit-https.git] / Source / JavaScriptCore / yarr / create_regex_tables
index c1f9f99..69cd888 100644 (file)
@@ -95,11 +95,11 @@ for name, classes in types.items():
     function += ("{\n")
     if emitTables and classes["UseTable"]:
         if "Inverse" in classes:
-            function += ("    auto characterClass = std::make_unique<CharacterClass>(_%sData, true);\n" % (classes["Inverse"]))
+            function += ("    auto characterClass = makeUnique<CharacterClass>(_%sData, true);\n" % (classes["Inverse"]))
         else:
-            function += ("    auto characterClass = std::make_unique<CharacterClass>(_%sData, false);\n" % (name))
+            function += ("    auto characterClass = makeUnique<CharacterClass>(_%sData, false);\n" % (name))
     else:
-        function += ("    auto characterClass = std::make_unique<CharacterClass>();\n")
+        function += ("    auto characterClass = makeUnique<CharacterClass>();\n")
     hasBMPCharacters = False
     hasNonBMPCharacters = False
     for (min, max) in ranges: