Work around SIL optimizer bug to allow stdlib to be built with

optimizations

Swift SVN r19050
This commit is contained in:
Dmitri Hrybenko
2014-06-20 20:03:47 +00:00
parent 0af4761d68
commit aa7d6d690d

View File

@@ -265,10 +265,16 @@ struct TestCase {
// in tests, and stdlib does not have such facilities yet.
func asHex(a: UInt8[]) -> String {
return "[ " + ", ".join(a.map { "0x" + String($0, radix: 16) }) + " ]"
// FIXME: commented out because of:
// <rdar://problem/17399536> SIL devirt crash: Assertion failed: (!empty())
// return "[ " + ", ".join(a.map { "0x" + String($0, radix: 16) }) + " ]"
return toString(a)
}
func asHex(a: UInt32[]) -> String {
return "[ " + ", ".join(a.map { "0x" + String($0, radix: 16) }) + " ]"
// FIXME: commented out because of:
// <rdar://problem/17399536> SIL devirt crash: Assertion failed: (!empty())
// return "[ " + ", ".join(a.map { "0x" + String($0, radix: 16) }) + " ]"
return toString(a)
}