We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent deda2f0 commit 871e32bCopy full SHA for 871e32b
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -3406,10 +3406,8 @@ void CodeViewDebug::emitDebugInfoForGlobal(const CVGlobalVariable &CVGV) {
3406
OS.emitInt32(getCompleteTypeIndex(DIGV->getType()).getIndex());
3407
OS.AddComment("DataOffset");
3408
3409
- uint64_t Offset = 0;
3410
- if (CVGlobalVariableOffsets.contains(DIGV))
3411
- // Use the offset seen while collecting info on globals.
3412
- Offset = CVGlobalVariableOffsets[DIGV];
+ // Use the offset seen while collecting info on globals.
+ uint64_t Offset = CVGlobalVariableOffsets.lookup(DIGV);
3413
OS.emitCOFFSecRel32(GVSym, Offset);
3414
3415
OS.AddComment("Segment");
0 commit comments