mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix use-after-free in helper function `printSILFunctionNameAndType`. The address of a `DenseMap` local variable is used after the function returns. Resolves SR-12239.
8 lines
152 B
Swift
8 lines
152 B
Swift
// RUN: %target-swift-frontend -emit-sil %s
|
|
|
|
// SR-12239: use-after-free in `SILFunction::print`.
|
|
|
|
func outer<C>(_ x: C) {
|
|
func inner<C>(_ x: C) {}
|
|
}
|