diff --git a/lib/SPIRV/SPIRVToLLVMDbgTran.cpp b/lib/SPIRV/SPIRVToLLVMDbgTran.cpp index b5d5a9af34..c616d5df90 100644 --- a/lib/SPIRV/SPIRVToLLVMDbgTran.cpp +++ b/lib/SPIRV/SPIRVToLLVMDbgTran.cpp @@ -708,7 +708,8 @@ SPIRVToLLVMDbgTran::transTypeMemberOpenCL(const SPIRVExtInst *DebugInst) { "Static member must be a constant"); llvm::Value *Val = SPIRVReader->transValue(ConstVal, nullptr, nullptr); return getDIBuilder(DebugInst).createStaticMemberType( - Scope, Name, File, LineNo, BaseType, Flags, cast(Val)); + Scope, Name, File, LineNo, BaseType, Flags, cast(Val), + llvm::dwarf::DW_TAG_member); } uint64_t Size = BM->get(Ops[SizeIdx])->getZExtIntValue(); uint64_t Alignment = 0; @@ -758,7 +759,8 @@ SPIRVToLLVMDbgTran::transTypeMemberNonSemantic(const SPIRVExtInst *DebugInst, "Static member must be a constant"); llvm::Value *Val = SPIRVReader->transValue(ConstVal, nullptr, nullptr); return getDIBuilder(DebugInst).createStaticMemberType( - Scope, Name, File, LineNo, BaseType, Flags, cast(Val)); + Scope, Name, File, LineNo, BaseType, Flags, cast(Val), + llvm::dwarf::DW_TAG_member); } uint64_t Size = BM->get(Ops[SizeIdx])->getZExtIntValue(); uint64_t Alignment = 0;