File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1265,7 +1265,7 @@ void IRGenModule::constructInitialFnAttributes(
1265
1265
Attrs.removeAttribute (llvm::Attribute::OptimizeForSize);
1266
1266
}
1267
1267
if (stackProtector == StackProtectorMode::StackProtector) {
1268
- Attrs.addAttribute (llvm::Attribute::StackProtectStrong );
1268
+ Attrs.addAttribute (llvm::Attribute::StackProtectReq );
1269
1269
Attrs.addAttribute (" stack-protector-buffer-size" , llvm::utostr (8 ));
1270
1270
}
1271
1271
}
Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ public func noStackProtector() {
21
21
g ( x)
22
22
g ( x) // avoid function merging by calling `g` two times
23
23
}
24
+ // CHECK: [[SSPATTRS]] = { sspreq {{.*}}"stack-protector-buffer-size"="8"
24
25
25
- // CHECK: [[SSPATTRS]] = { sspstrong {{.*}}"stack-protector-buffer-size"="8"
You can’t perform that action at this time.
0 commit comments