diff options
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index a32cd8bc904..d93c7f6c845 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -430,8 +430,7 @@ void DwarfCompileUnit::addScopeRangeList(DIE &ScopeDIE, // Add the range list to the set of ranges to be emitted. auto IndexAndList = (DD->getDwarfVersion() < 5 && Skeleton ? Skeleton->DU : DU) - ->addRange((Skeleton ? Skeleton->BaseAddress : BaseAddress), - std::move(Range)); + ->addRange(*(Skeleton ? Skeleton : this), std::move(Range)); uint32_t Index = IndexAndList.first; auto &List = *IndexAndList.second; |