Skip to content

Commit e0f9b26

Browse files
committed
Ensure test doesn't run with llvm 3.9
1 parent f7f6598 commit e0f9b26

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/rustllvm/RustWrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ static unsigned fromRust(LLVMRustDIFlags Flags) {
548548
if (isSet(Flags & LLVMRustDIFlags::FlagRValueReference)) {
549549
Result |= DINode::DIFlags::FlagRValueReference;
550550
}
551-
#if LLVM_RUSTLLVM || LLVM_VERSION_GE(4, 0)
552551
if (isSet(Flags & LLVMRustDIFlags::FlagExternalTypeRef)) {
553552
Result |= DINode::DIFlags::FlagExternalTypeRef;
554553
}
@@ -558,6 +557,7 @@ static unsigned fromRust(LLVMRustDIFlags Flags) {
558557
if (isSet(Flags & LLVMRustDIFlags::FlagBitField)) {
559558
Result |= DINode::DIFlags::FlagBitField;
560559
}
560+
#if LLVM_RUSTLLVM || LLVM_VERSION_GE(4, 0)
561561
if (isSet(Flags & LLVMRustDIFlags::FlagNoReturn)) {
562562
Result |= DINode::DIFlags::FlagNoReturn;
563563
}

src/test/codegen/noreturnflag.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// ignore-tidy-linelength
12-
// min-llvm-version 3.8
12+
// min-llvm-version 4.0
1313

1414
// compile-flags: -g -C no-prepopulate-passes
1515

@@ -19,8 +19,6 @@ fn foo() -> ! {
1919
loop {}
2020
}
2121

22-
// CHECK: {{.*}}DISubprogram{{.*}}name: "main",{{.*}}DIFlagMainSubprogram{{.*}}
23-
2422
pub fn main() {
2523
foo();
2624
}

0 commit comments

Comments
 (0)