Skip to content

Commit

Permalink
Ensure test doesn't run with llvm 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhota committed Jan 21, 2018
1 parent f7f6598 commit e0f9b26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/rustllvm/RustWrapper.cpp
Expand Up @@ -548,7 +548,6 @@ static unsigned fromRust(LLVMRustDIFlags Flags) {
if (isSet(Flags & LLVMRustDIFlags::FlagRValueReference)) {
Result |= DINode::DIFlags::FlagRValueReference;
}
#if LLVM_RUSTLLVM || LLVM_VERSION_GE(4, 0)
if (isSet(Flags & LLVMRustDIFlags::FlagExternalTypeRef)) {
Result |= DINode::DIFlags::FlagExternalTypeRef;
}
Expand All @@ -558,6 +557,7 @@ static unsigned fromRust(LLVMRustDIFlags Flags) {
if (isSet(Flags & LLVMRustDIFlags::FlagBitField)) {
Result |= DINode::DIFlags::FlagBitField;
}
#if LLVM_RUSTLLVM || LLVM_VERSION_GE(4, 0)
if (isSet(Flags & LLVMRustDIFlags::FlagNoReturn)) {
Result |= DINode::DIFlags::FlagNoReturn;
}
Expand Down
4 changes: 1 addition & 3 deletions src/test/codegen/noreturnflag.rs
Expand Up @@ -9,7 +9,7 @@
// except according to those terms.

// ignore-tidy-linelength
// min-llvm-version 3.8
// min-llvm-version 4.0

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

Expand All @@ -19,8 +19,6 @@ fn foo() -> ! {
loop {}
}

// CHECK: {{.*}}DISubprogram{{.*}}name: "main",{{.*}}DIFlagMainSubprogram{{.*}}

pub fn main() {
foo();
}

0 comments on commit e0f9b26

Please sign in to comment.