@@ -708,7 +708,8 @@ SPIRVToLLVMDbgTran::transTypeMemberOpenCL(const SPIRVExtInst *DebugInst) {
708
708
" Static member must be a constant" );
709
709
llvm::Value *Val = SPIRVReader->transValue (ConstVal, nullptr , nullptr );
710
710
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);
712
713
}
713
714
uint64_t Size = BM->get <SPIRVConstant>(Ops[SizeIdx])->getZExtIntValue ();
714
715
uint64_t Alignment = 0 ;
@@ -758,7 +759,8 @@ SPIRVToLLVMDbgTran::transTypeMemberNonSemantic(const SPIRVExtInst *DebugInst,
758
759
" Static member must be a constant" );
759
760
llvm::Value *Val = SPIRVReader->transValue (ConstVal, nullptr , nullptr );
760
761
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);
762
764
}
763
765
uint64_t Size = BM->get <SPIRVConstant>(Ops[SizeIdx])->getZExtIntValue ();
764
766
uint64_t Alignment = 0 ;
0 commit comments