We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 555d16e commit c7c292bCopy full SHA for c7c292b
src/librustc_trans/abi.rs
@@ -1062,7 +1062,11 @@ impl<'a, 'tcx> FnType<'tcx> {
1062
match scalar.value {
1063
layout::Int(..) if !scalar.is_bool() => {
1064
if let Some(range) = scalar.range_metadata(bx.cx) {
1065
- bx.range_metadata(callsite, range);
+ // FIXME(nox): This causes very weird type errors about
1066
+ // SHL operators in constants in stage 2 with LLVM 3.9.
1067
+ if unsafe { llvm::LLVMRustVersionMajor() >= 4 } {
1068
+ bx.range_metadata(callsite, range);
1069
+ }
1070
}
1071
1072
_ => {}
src/test/codegen/call-metadata.rs
@@ -12,6 +12,8 @@
12
// scalar value.
13
14
// compile-flags: -C no-prepopulate-passes
15
+// min-llvm-version 4.0
16
+
17
18
#![crate_type = "lib"]
19
0 commit comments