Files
swift-mirror/validation-test/SIL/crashers_fixed/047-swift-silfunction-print.swift
Dan Zheng 9600b9737a [SIL] Fix use-after-free in SILFunction::print. (#29949)
Fix use-after-free in helper function `printSILFunctionNameAndType`.
The address of a `DenseMap` local variable is used after the function returns.

Resolves SR-12239.
2020-02-20 17:53:38 -08:00

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) {}
}