rust/compiler/rustc_llvm
Jonas Schievink 38c34098b1
Rollup merge of #78462 - danielframpton:fixnullisa, r=nagisa
Use unwrapDIPtr because the Scope may be null.

I ran into an assertion when using debug information on Windows with LLVM assertions enabled.

It seems like we are using unwrap here (which in turn calls isa and requires the pointer to be non-null) but we expect the value to be null because that is what we are passing from rustc.

This change uses unwrapDIPtr which explicitly allows nullptr.

The FFI prototype for this method on the rust side has the `LLVMMetadataRef` parameter as `Scope: Option<&'a DIScope>`, and we always pass `None` when `msvc_like_names` is true.
2020-10-29 17:05:23 +01:00
..
llvm-wrapper Rollup merge of #78462 - danielframpton:fixnullisa, r=nagisa 2020-10-29 17:05:23 +01:00
src Remove unused #[allow(...)] statements from compiler/ 2020-09-26 01:25:55 +02:00
build.rs Simplify some code in rustc_llvm/build.rs now that LLVM 8 is required 2020-10-08 06:19:06 +02:00
Cargo.toml Update cc crate to understand aarch64-apple-darwin with clang 2020-09-18 09:22:07 -04:00