File tree 1 file changed +3
-4
lines changed
src/librustc_codegen_llvm/debuginfo
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1164,11 +1164,10 @@ fn use_enum_fallback(cx: &CodegenCx) -> bool {
1164
1164
// On MSVC we have to use the fallback mode, because LLVM doesn't
1165
1165
// lower variant parts to PDB.
1166
1166
return cx. sess ( ) . target . target . options . is_like_msvc
1167
- || llvm_util:: get_major_version ( ) < 7
1168
1167
// LLVM version 7 did not release with an important bug fix;
1169
- // but the required patch is in the equivalent Rust LLVM.
1170
- // See https://github.com/rust-lang/rust/issues/57762 .
1171
- || ( llvm_util:: get_major_version ( ) == 7 && unsafe { !llvm :: LLVMRustIsRustLLVM ( ) } ) ;
1168
+ // but the required patch is in the LLVM 8. Rust LLVM reports
1169
+ // 8 as well .
1170
+ || llvm_util:: get_major_version ( ) < 8 ;
1172
1171
}
1173
1172
1174
1173
// Describes the members of an enum value: An enum is described as a union of
You can’t perform that action at this time.
0 commit comments