Skip to content

Commit 206e44c

Browse files
committed
[lldb] Use function in TestSwiftEmbeddedExpression so its not deleted
The compiler will not keep functions only for the debugger when compiling in embedded Swift mode. Change TestSwiftEmbeddedExpression so the function being called is not optimized out.
1 parent bb2ca20 commit 206e44c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/test/API/lang/swift/embedded/expr/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
struct A {
1+
public struct A {
22
var field = 4
33

4-
func foo() -> Int {
4+
public func foo() -> Int {
55
return field * field
66
}
77
}

0 commit comments

Comments
 (0)