about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2022-05-28 10:41:28 +0200
committerNikita Popov <nikita.ppv@gmail.com>2022-05-28 10:43:36 +0200
commit1ff051a9c53511473a12a37fe772e8c5f3e3e32b (patch)
tree7e11fdfef7d2ee671c6772695dc7604d41ed392c /compiler/rustc_codegen_llvm/src
parent6dc4fe5fe8815b7a64cd58ae3f5a006b946e3330 (diff)
downloadrust-1ff051a9c53511473a12a37fe772e8c5f3e3e32b.tar.gz
rust-1ff051a9c53511473a12a37fe772e8c5f3e3e32b.zip
Fix documentation of basic stack protector
A stack protector is used for N >= 8, not N > 8.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/lib.rs b/compiler/rustc_codegen_llvm/src/lib.rs
index 2b5154a2cf9..913cf4eea13 100644
--- a/compiler/rustc_codegen_llvm/src/lib.rs
+++ b/compiler/rustc_codegen_llvm/src/lib.rs
@@ -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.