Skip to content

Commit 3872c0e

Browse files
committed
Fix a build break
1 parent 78f3e97 commit 3872c0e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm-spirv/lib/SPIRV/SPIRVToLLVMDbgTran.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,8 @@ SPIRVToLLVMDbgTran::transTypeMemberOpenCL(const SPIRVExtInst *DebugInst) {
708708
"Static member must be a constant");
709709
llvm::Value *Val = SPIRVReader->transValue(ConstVal, nullptr, nullptr);
710710
return getDIBuilder(DebugInst).createStaticMemberType(
711-
Scope, Name, File, LineNo, BaseType, Flags, cast<llvm::Constant>(Val));
711+
Scope, Name, File, LineNo, BaseType, Flags, cast<llvm::Constant>(Val),
712+
llvm::dwarf::DW_TAG_member);
712713
}
713714
uint64_t Size = BM->get<SPIRVConstant>(Ops[SizeIdx])->getZExtIntValue();
714715
uint64_t Alignment = 0;
@@ -758,7 +759,8 @@ SPIRVToLLVMDbgTran::transTypeMemberNonSemantic(const SPIRVExtInst *DebugInst,
758759
"Static member must be a constant");
759760
llvm::Value *Val = SPIRVReader->transValue(ConstVal, nullptr, nullptr);
760761
return getDIBuilder(DebugInst).createStaticMemberType(
761-
Scope, Name, File, LineNo, BaseType, Flags, cast<llvm::Constant>(Val));
762+
Scope, Name, File, LineNo, BaseType, Flags, cast<llvm::Constant>(Val),
763+
llvm::dwarf::DW_TAG_member);
762764
}
763765
uint64_t Size = BM->get<SPIRVConstant>(Ops[SizeIdx])->getZExtIntValue();
764766
uint64_t Alignment = 0;

0 commit comments

Comments
 (0)