Skip to content

Commit 1ff051a

Browse files
committedMay 28, 2022
Fix documentation of basic stack protector
A stack protector is used for N >= 8, not N > 8.
1 parent 6dc4fe5 commit 1ff051a

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_codegen_llvm/src

1 file changed

+2
-2
lines changed
 

‎compiler/rustc_codegen_llvm/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ impl CodegenBackend for LlvmCodegenBackend {
304304
local stack variable in the ABI.)
305305
306306
basic
307-
Generate stack canaries in functions with:
308-
- local variables of `[T; N]` type, where `T` is byte-sized and `N` > 8.
307+
Generate stack canaries in functions with local variables of `[T; N]`
308+
type, where `T` is byte-sized and `N` >= 8.
309309
310310
none
311311
Do not generate stack canaries.

0 commit comments

Comments
 (0)
Please sign in to comment.