Update testcase for upstream LLVM changes.

(cherry picked from commit 8ed230fb73)
This commit is contained in:
Adrian Prantl
2020-01-14 11:33:04 -08:00
parent dc2040db9f
commit 612c53be8f

View File

@@ -11,7 +11,10 @@ enum MyError : Error {
// thrown error we create a shadow stack location holding the address of the
// location that holds the pointer to the error instead.
func simple(_ placeholder: Int64) throws -> () {
// CHECK: define {{.*}}void @"$s8ErrorVar6simpleyys5Int64VKF"(i64, %swift.refcounted* swiftself, %swift.error** noalias nocapture dereferenceable(4))
// CHECK: define {{.*}}void @"$s8ErrorVar6simpleyys5Int64VKF"(
// CHECK-SAME: i64
// CHECK-SAME: %swift.refcounted* {{.*}}swiftself
// CHECK-SAME: %swift.error** noalias nocapture dereferenceable(4)
// CHECK: call void @llvm.dbg.declare
// CHECK: call void @llvm.dbg.declare({{.*}}, metadata ![[ERROR:[0-9]+]], metadata !DIExpression(DW_OP_deref))
// CHECK: ![[ERRTY:.*]] = !DICompositeType({{.*}}identifier: "$ss5Error_pD"