Files
swift-mirror/test/Interpreter/polymorphic_builtins.swift
Michael Gottesman ac51ce3fc7 [polymorphic-builtins] Enable test during optimize builds.
The confusion here was around a test that was testing the behavior when one
/does not/ guard a polymorphic builtin with a _isConcrete. Specifically, without
_isConcrete, one gets weird behavior where in debug we crash, but in release we
may not due to further inlining/specialization. With _isConcrete, we never
crashand get the appropriate behavior.

This commit works by changing the current run of the polymorphic builtin test to
force -Onone and adds an extra -O run that way we validate both behaviors.
2020-04-09 14:44:45 -07:00

3.9 KiB