Skip to content

Commit f77f338

Browse files
committed
Don't handle removed FlagBlockByrefStruct
1 parent 8010f40 commit f77f338

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rustllvm/RustWrapper.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,11 @@ static DINode::DIFlags fromRust(LLVMRustDIFlags Flags) {
496496
if (isSet(Flags & LLVMRustDIFlags::FlagAppleBlock)) {
497497
Result |= DINode::DIFlags::FlagAppleBlock;
498498
}
499+
#if LLVM_VERSION_LT(10, 0)
499500
if (isSet(Flags & LLVMRustDIFlags::FlagBlockByrefStruct)) {
500501
Result |= DINode::DIFlags::FlagBlockByrefStruct;
501502
}
503+
#endif
502504
if (isSet(Flags & LLVMRustDIFlags::FlagVirtual)) {
503505
Result |= DINode::DIFlags::FlagVirtual;
504506
}

0 commit comments

Comments
 (0)