File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1310,7 +1310,7 @@ bool swift::irgen::shouldRemoveTargetFeature(StringRef feature) {
1310
1310
}
1311
1311
1312
1312
void IRGenModule::setHasNoFramePointer (llvm::AttrBuilder &Attrs) {
1313
- Attrs.addAttribute (" frame-pointer" , " none " );
1313
+ Attrs.addAttribute (" frame-pointer" , " non-leaf " );
1314
1314
}
1315
1315
1316
1316
void IRGenModule::setHasNoFramePointer (llvm::Function *F) {
Original file line number Diff line number Diff line change @@ -171,6 +171,6 @@ func test_computed_key_path_generic_thunks<T: P0 & Hashable>(value: T) -> KeyPat
171
171
// unlikely that handrolled code generation would think to add one.
172
172
// CHECK: attributes [[ATTRS_SIMPLE]] = { [[CUSTOM_ATTRS:.*target-cpu.*]] }{{$}}
173
173
// CHECK-DAG: attributes [[ATTRS_NOINLINE_NOUNWIND]] = { noinline nounwind {{.*target-cpu.*}} }
174
- // CHECK-DAG: attributes [[ATTRS_NOINLINE_READNONE_NOUNWIND_NOFRAME]] = { noinline nounwind readnone {{.*}}"frame-pointer"="none "{{.*target-cpu.*}} }
175
- // CHECK-DAG: attributes [[ATTRS_NOINLINE_READONLY_NOUNWIND_NOFRAME]] = { noinline nounwind readonly willreturn {{.*}}"frame-pointer"="none "{{.*target-cpu.*}} }
174
+ // CHECK-DAG: attributes [[ATTRS_NOINLINE_READNONE_NOUNWIND_NOFRAME]] = { noinline nounwind readnone {{.*}}"frame-pointer"="non-leaf "{{.*target-cpu.*}} }
175
+ // CHECK-DAG: attributes [[ATTRS_NOINLINE_READONLY_NOUNWIND_NOFRAME]] = { noinline nounwind readonly willreturn {{.*}}"frame-pointer"="non-leaf "{{.*target-cpu.*}} }
176
176
// CHECK-DAG: attributes [[ATTRS_NOUNWIND]] = { nounwind [[CUSTOM_ATTRS]] }{{$}}
You can’t perform that action at this time.
0 commit comments