bump minimum LLVM version to 5.0

This commit is contained in:
gnzlbg
2018-06-29 10:28:51 +02:00
parent ec039c7cb1
commit 4ff90c7e0a
30 changed files with 17 additions and 268 deletions

View File

@@ -666,11 +666,7 @@ impl<'a, 'tcx> FnTypeExt<'a, 'tcx> for FnType<'tcx, Ty<'tcx>> {
layout::Int(..) if !scalar.is_bool() => {
let range = scalar.valid_range_exclusive(bx.cx);
if range.start != range.end {
// FIXME(nox): This causes very weird type errors about
// SHL operators in constants in stage 2 with LLVM 3.9.
if unsafe { llvm::LLVMRustVersionMajor() >= 4 } {
bx.range_metadata(callsite, range);
}
bx.range_metadata(callsite, range);
}
}
_ => {}