diff options
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 5cba2cb..a692e7a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -3406,10 +3406,8 @@ void CodeViewDebug::emitDebugInfoForGlobal(const CVGlobalVariable &CVGV) { OS.emitInt32(getCompleteTypeIndex(DIGV->getType()).getIndex()); OS.AddComment("DataOffset"); - uint64_t Offset = 0; - if (CVGlobalVariableOffsets.contains(DIGV)) - // Use the offset seen while collecting info on globals. - Offset = CVGlobalVariableOffsets[DIGV]; + // Use the offset seen while collecting info on globals. + uint64_t Offset = CVGlobalVariableOffsets.lookup(DIGV); OS.emitCOFFSecRel32(GVSym, Offset); OS.AddComment("Segment"); |