Skip to content

Commit

Permalink
[NFC] Fix build after da90fd7524 (#2217)
Browse files Browse the repository at this point in the history
The patch added extra parameter to StaticMemberType for differentiation
between DW_TAG_variable and DW_TAG_member in DWARF5.

Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
  • Loading branch information
MrSidims authored Nov 15, 2023
1 parent 2075517 commit b90bf05
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/SPIRV/SPIRVToLLVMDbgTran.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<llvm::Constant>(Val));
Scope, Name, File, LineNo, BaseType, Flags, cast<llvm::Constant>(Val),
llvm::dwarf::DW_TAG_member);
}
uint64_t Size = BM->get<SPIRVConstant>(Ops[SizeIdx])->getZExtIntValue();
uint64_t Alignment = 0;
Expand Down Expand Up @@ -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<llvm::Constant>(Val));
Scope, Name, File, LineNo, BaseType, Flags, cast<llvm::Constant>(Val),
llvm::dwarf::DW_TAG_member);
}
uint64_t Size = BM->get<SPIRVConstant>(Ops[SizeIdx])->getZExtIntValue();
uint64_t Alignment = 0;
Expand Down

0 comments on commit b90bf05

Please sign in to comment.