Skip to content

Commit

Permalink
Fix documentation of basic stack protector
Browse files Browse the repository at this point in the history
A stack protector is used for N >= 8, not N > 8.
  • Loading branch information
nikic committed May 28, 2022
1 parent 6dc4fe5 commit 1ff051a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_codegen_llvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ impl CodegenBackend for LlvmCodegenBackend {
local stack variable in the ABI.)
basic
Generate stack canaries in functions with:
- local variables of `[T; N]` type, where `T` is byte-sized and `N` > 8.
Generate stack canaries in functions with local variables of `[T; N]`
type, where `T` is byte-sized and `N` >= 8.
none
Do not generate stack canaries.
Expand Down

0 comments on commit 1ff051a

Please sign in to comment.