Title: [251257] trunk/Source/_javascript_Core
- Revision
- 251257
- Author
- [email protected]
- Date
- 2019-10-17 14:20:28 -0700 (Thu, 17 Oct 2019)
Log Message
Build fix for newer versions of MSVC.
Rubber stamped by Mark Lam.
Some versions of MSVC optimize the inline optimization of
index away, triggering an uninitialized variable error. This
change avoids this problem.
* runtime/Options.cpp:
(JSC::optionTypeSpecificIndex):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (251256 => 251257)
--- trunk/Source/_javascript_Core/ChangeLog 2019-10-17 21:02:45 UTC (rev 251256)
+++ trunk/Source/_javascript_Core/ChangeLog 2019-10-17 21:20:28 UTC (rev 251257)
@@ -1,3 +1,16 @@
+2019-10-17 Brent Fulgham <[email protected]>
+
+ Build fix for newer versions of MSVC.
+
+ Rubber stamped by Mark Lam.
+
+ Some versions of MSVC optimize the inline optimization of
+ index away, triggering an uninitialized variable error. This
+ change avoids this problem.
+
+ * runtime/Options.cpp:
+ (JSC::optionTypeSpecificIndex):
+
2019-10-17 Devin Rousso <[email protected]>
Web Inspector: rework frontend agent construction to allow commands/events to be controlled by the related target's type
Modified: trunk/Source/_javascript_Core/runtime/Options.cpp (251256 => 251257)
--- trunk/Source/_javascript_Core/runtime/Options.cpp 2019-10-17 21:02:45 UTC (rev 251256)
+++ trunk/Source/_javascript_Core/runtime/Options.cpp 2019-10-17 21:20:28 UTC (rev 251257)
@@ -291,7 +291,9 @@
template<OptionTypeID type, OptionID id>
constexpr size_t optionTypeSpecificIndex()
{
- size_t index = 0;
+ size_t index;
+ index = 0; // MSVC (16.3.5) improperly optimizes away the inline initialization of index, so use an explicit assignment.
+
#define COUNT_INDEX_AND_FIND_MATCH(type_, name_, defaultValue_, availability_, description_) \
if (id == OptionID::name_) \
return index; \
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes