From: Simon Pilgrim Date: Sun, 14 Jul 2019 11:10:04 +0000 (+0000) Subject: [MachineOutliner] Add missing initializers for OutlinedFunction. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=624b9697faeff3d4186672127008e74099d5dcfc;p=llvm [MachineOutliner] Add missing initializers for OutlinedFunction. NFCI. Appeases MSVC/cppcheck. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366014 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineOutliner.h b/include/llvm/CodeGen/MachineOutliner.h index 377df4e18a2..3868fa41557 100644 --- a/include/llvm/CodeGen/MachineOutliner.h +++ b/include/llvm/CodeGen/MachineOutliner.h @@ -171,13 +171,13 @@ public: /// Represents the size of a sequence in bytes. (Some instructions vary /// widely in size, so just counting the instructions isn't very useful.) - unsigned SequenceSize; + unsigned SequenceSize = 0; /// Target-defined overhead of constructing a frame for this function. - unsigned FrameOverhead; + unsigned FrameOverhead = 0; /// Target-defined identifier for constructing a frame for this function. - unsigned FrameConstructionID; + unsigned FrameConstructionID = 0; /// Return the number of candidates for this \p OutlinedFunction. unsigned getOccurrenceCount() const { return Candidates.size(); }