rust/compiler/rustc_codegen_llvm/src
Guillaume Gomez 798815aec5
Rollup merge of #104110 - krasimirgg:msan-16, r=nagisa
prevent uninitialized access in black_box for zero-sized-types

Don't read the pointer location in black_box for zero sized types, just emit a memory clobber instead. Addresses  https://github.com/rust-lang/rust/issues/103304 when rust is build against LLVM at HEAD.

Zulip thread: https://rust-lang.zulipchat.com/#narrow/stream/187780-t-compiler.2Fwg-llvm/topic/.28with.20llvm.20at.20HEAD.29.3A.20msan.20error.20in.20core.3A.3Ahint.3A.3Ablack_box
2022-11-12 17:25:00 +01:00
..
back Update compiler/rustc_codegen_llvm/src/back/archive.rs 2022-11-09 14:56:21 +01:00
coverageinfo Port Instrument coverage requires llvm 12 to the new struct 2022-11-09 14:56:20 +01:00
debuginfo Change name of "dataful" variant to "untagged" 2022-09-07 20:12:45 +00:00
llvm LLVM 16: Switch to using MemoryEffects 2022-11-04 17:58:16 +00:00
abi.rs Merge apply_attrs_callsite into call and invoke 2022-10-01 17:01:31 +00:00
allocator.rs Rewrite implementation of #[alloc_error_handler] 2022-10-31 16:32:57 +00:00
asm.rs Rollup merge of #103977 - TimNN:memory-effects, r=nikic 2022-11-05 00:02:05 +01:00
attributes.rs Simplify existing Diagnostic implementations 2022-11-09 14:56:21 +01:00
base.rs Remove several unused methods from MiscMethods 2022-10-01 16:45:07 +00:00
builder.rs Don't use usub.with.overflow intrinsic 2022-10-20 12:47:17 +02:00
callee.rs Get rid of native_library projection queries 2022-10-19 16:21:21 +02:00
common.rs Introduce a fallible variant of LLVMConstIntGetZExtValue 2022-09-09 15:54:14 +02:00
consts.rs Reuse SymbolAlreadyDefined 2022-11-09 14:56:20 +01:00
context.rs Use LayoutError's implementation of IntoDiagnostic 2022-11-09 14:56:21 +01:00
declare.rs Change declare_cfn to use the C visibility for all C ABI functions. 2022-09-28 14:50:58 -07:00
errors.rs Use LayoutError's implementation of IntoDiagnostic 2022-11-09 14:56:21 +01:00
intrinsic.rs prevent uninitialized access in black_box for zero-sized-types 2022-11-08 11:19:14 +00:00
lib.rs Port diagnostics created by Handler 2022-11-09 14:56:21 +01:00
llvm_util.rs Simplify existing Diagnostic implementations 2022-11-09 14:56:21 +01:00
mono_item.rs Fix diag() and formatting 2022-11-09 14:56:20 +01:00
type_.rs Add type_array to BaseTypeMethods 2022-11-06 14:18:36 +05:30
type_of.rs Always import all tracing macros for the entire crate instead of piecemeal by module 2022-09-01 14:54:27 +00:00
va_arg.rs Introduce Bx::switch_to_block 2022-02-24 12:18:21 +01:00
value.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00