Skip to content

Commit 4e0b983

Browse files
authored
Merge pull request swiftlang#70646 from AtariDreams/offset
Initialize variable to silence warning
2 parents 119d40d + 2676117 commit 4e0b983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/StaticMirror/ObjectFileContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void Image::scanMachO(const llvm::object::MachOObjectFile *O) {
9090
}
9191

9292
// The offset from the symbol is stored at the target address.
93-
uint64_t Offset;
93+
uint64_t Offset = 0;
9494
auto OffsetContent =
9595
getContentsAtAddress(bind.address(), O->getBytesInAddress());
9696
if (OffsetContent.empty())

0 commit comments

Comments
 (0)