diff options
| author | bors <bors@rust-lang.org> | 2023-08-11 04:17:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-11 04:17:57 +0000 |
| commit | a07bc13e14163102193ac19379235711b1b5e44e (patch) | |
| tree | 5cc20832131f8fbdf92c79e82d7a54d952cf7781 /compiler/rustc_codegen_llvm/src/context.rs | |
| parent | e286f25ec058276c2c83b809f18eaa7e3db52d99 (diff) | |
| parent | 5f906897f675e9c4bf3f29ca32f52659277a8775 (diff) | |
| download | rust-a07bc13e14163102193ac19379235711b1b5e44e.tar.gz rust-a07bc13e14163102193ac19379235711b1b5e44e.zip | |
Auto merge of #114718 - compiler-errors:rollup-1am5rpn, r=compiler-errors
Rollup of 7 pull requests Successful merges: - #114599 (Add impl trait declarations to SMIR) - #114622 (rustc: Move `crate_types` and `stable_crate_id` from `Session` to `GlobalCtxt`) - #114662 (Unlock trailing where-clauses for lazy type aliases) - #114693 (Remove myself from the review rotation) - #114694 (make the provisional cache slightly less broken) - #114705 (Add spastorino to mailmap) - #114712 (Fix a couple of bad comments) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/context.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs index b4f7e20e05d..24fd5bbf8c5 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -209,7 +209,7 @@ pub unsafe fn create_module<'ll>( // PIE is potentially more effective than PIC, but can only be used in executables. // If all our outputs are executables, then we can relax PIC to PIE. if reloc_model == RelocModel::Pie - || sess.crate_types().iter().all(|ty| *ty == CrateType::Executable) + || tcx.crate_types().iter().all(|ty| *ty == CrateType::Executable) { llvm::LLVMRustSetModulePIELevel(llmod); } |
