[lld] r352304 - Follow-up to r352254: Initialize Selection field.
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 26 19:56:37 PST 2019
Author: nico
Date: Sat Jan 26 19:56:37 2019
New Revision: 352304
URL: http://llvm.org/viewvc/llvm-project?rev=352304&view=rev
Log:
Follow-up to r352254: Initialize Selection field.
The diagnostic there fired spuriosly due to uninitialized memory.
Modified:
lld/trunk/COFF/Chunks.h
Modified: lld/trunk/COFF/Chunks.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Chunks.h?rev=352304&r1=352303&r2=352304&view=diff
==============================================================================
--- lld/trunk/COFF/Chunks.h (original)
+++ lld/trunk/COFF/Chunks.h Sat Jan 26 19:56:37 2019
@@ -224,7 +224,7 @@ public:
DefinedRegular *Sym = nullptr;
// The COMDAT selection if this is a COMDAT chunk.
- llvm::COFF::COMDATType Selection;
+ llvm::COFF::COMDATType Selection = (llvm::COFF::COMDATType)0;
ArrayRef<coff_relocation> Relocs;
More information about the llvm-commits
mailing list