Revert "Temporarily disable debug info generation for async functions"

This reverts commit 8d763321c1.
This commit is contained in:
Shubham Sandeep Rastogi
2025-08-22 15:31:17 -07:00
parent 1c410d9582
commit 35ed2080ba
15 changed files with 0 additions and 19 deletions

View File

@@ -3741,11 +3741,6 @@ void IRGenDebugInfoImpl::emitDbgIntrinsic(
llvm::DIExpression *Expr, unsigned Line, unsigned Col,
llvm::DILocalScope *Scope, const SILDebugScope *DS, bool InCoroContext,
AddrDbgInstrKind AddrDInstKind) {
// Workaround for debug info assertion in Verifier.cpp where the #dbg_declares
// have references to non ints and ptrs.
if (InCoroContext)
return;
Storage = Storage->stripPointerCasts();
// Set the location/scope of the intrinsic.
auto *InlinedAt = createInlinedAt(DS);

View File

@@ -1,6 +1,5 @@
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-irgen -g -o - | %FileCheck %s
// REQUIRES: concurrency
// REQUIRES: rdar157299589
func some_func(_: () -> Void) async {}

View File

@@ -3,7 +3,6 @@
// RUN: -parse-as-library | %FileCheck %s
// REQUIRES: concurrency
// REQUIRES: rdar157299589
func use<T>(_ t: T) {}
func forceSplit() async {

View File

@@ -3,7 +3,6 @@
// RUN: -parse-as-library | %FileCheck %s --check-prefix=CHECK
// REQUIRES: concurrency
// REQUIRES: rdar157299589
func ASYNC___1___() async -> Int {

View File

@@ -1,7 +1,6 @@
// RUN: %target-swift-frontend %s -emit-ir -g -o - -parse-as-library \
// RUN: -module-name M -target %target-swift-5.1-abi-triple | %FileCheck %s
// REQUIRES: concurrency
// REQUIRES: rdar157299589
@available(SwiftStdlib 5.1, *)
extension Collection where Element: Sendable {

View File

@@ -3,7 +3,6 @@
// RUN: -parse-as-library | %FileCheck %s --check-prefix=CHECK
// REQUIRES: concurrency
// REQUIRES: CPU=x86_64 || CPU=arm64
// REQUIRES: rdar157299589
// Test that x is described as a direct dbg.declare of the incoming function

View File

@@ -4,7 +4,6 @@
// REQUIRES: concurrency
// REQUIRES: CPU=x86_64 || CPU=arm64
// REQUIRES: rdar157299589
public func getVegetables() async -> [String] {
return ["leek", "carrot"]

View File

@@ -4,7 +4,6 @@
// REQUIRES: concurrency
// REQUIRES: CPU=x86_64 || CPU=arm64
// REQUIRES: rdar157299589
public actor Alice {
let bob = Bob()

View File

@@ -2,7 +2,6 @@
// RUN: -module-name a -target %target-swift-5.1-abi-triple \
// RUN: | %FileCheck %s --check-prefix=CHECK
// REQUIRES: concurrency
// REQUIRES: rdar157299589
// Test that lifetime extension preserves a dbg.declare for "n" in the resume
// funclet.

View File

@@ -3,7 +3,6 @@
// RUN: | %FileCheck %s --check-prefix=CHECK
// REQUIRES: concurrency
// REQUIRES: CPU=x86_64 || CPU=arm64
// REQUIRES: rdar157299589
func getString() async -> String {
return ""

View File

@@ -2,7 +2,6 @@
// RUN: -module-name a -target %target-swift-5.1-abi-triple \
// RUN: | %FileCheck %s --check-prefix=CHECK
// REQUIRES: concurrency
// REQUIRES: rdar157299589
// Test dynamically allocated local variables in async functions.

View File

@@ -2,7 +2,6 @@
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -primary-file %s -Xllvm -sil-disable-pass=temp-lvalue-elimination -emit-irgen -O -g | %FileCheck %s
// REQUIRES: CPU=arm64 || CPU=x86_64 || CPU=arm64e
// REQUIRES: rdar157299589
protocol External {
func use(str: String);

View File

@@ -14,7 +14,6 @@
// slightly differently on other platforms.
// REQUIRES: OS=macosx
// REQUIRES: CPU=x86_64 || CPU=arm64
// REQUIRES: rdar157299589
//////////////////
// Declarations //

View File

@@ -1,6 +1,5 @@
// RUN: %target-swift-frontend -emit-ir -g %s -swift-version 6 -enable-upcoming-feature NonisolatedNonsendingByDefault
// REQUIRES: swift_feature_NonisolatedNonsendingByDefault
// REQUIRES: rdar157299589
public protocol P: Sendable {
func f(_: Int) async

View File

@@ -1,7 +1,6 @@
// RUN: %target-swift-frontend -emit-ir -g -o - -module-name test -strict-concurrency=complete -swift-version 5 -enable-upcoming-feature SendingArgsAndResults -target %target-swift-5.1-abi-triple %s | %FileCheck %s
// REQUIRES: swift_feature_SendingArgsAndResults
// REQUIRES: rdar157299589
// Test that we can properly reconstruct sending from various tests when
// emitting debug info. Only place examples in here that have already failed.