mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Work around SIL optimizer bug to allow stdlib to be built with
optimizations Swift SVN r19050
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user