about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-05-29 14:12:42 +0000
committerbors <bors@rust-lang.org>2022-05-29 14:12:42 +0000
commit9d1aeaeb827da7a10b7cfaccf0a1d6ebf414a7b5 (patch)
tree29ff4633cbd3297d37ddd756a6402fe929ea6721 /compiler/rustc_codegen_llvm/src/lib.rs
parentabc7681a76c7aa5adef896b85c3894047a4492d4 (diff)
parent1ff051a9c53511473a12a37fe772e8c5f3e3e32b (diff)
downloadrust-9d1aeaeb827da7a10b7cfaccf0a1d6ebf414a7b5.tar.gz
rust-9d1aeaeb827da7a10b7cfaccf0a1d6ebf414a7b5.zip
Auto merge of #94214 - nikic:rust-opaque-pointers, r=cuviper
Prepare Rust for opaque pointers

Fix one codegen bug with opaque pointers, and update our IR tests to accept both typed pointer and opaque pointer IR. This is a bit annoying, but unavoidable if we want decent test coverage on both LLVM 14 and LLVM 15.

This prepares Rust for when LLVM will enable opaque pointers by default.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/lib.rs')
-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.