]> granicus.if.org Git - llvm/commitdiff
[MachineOutliner] Add missing initializers for OutlinedFunction. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 14 Jul 2019 11:10:04 +0000 (11:10 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 14 Jul 2019 11:10:04 +0000 (11:10 +0000)
Appeases MSVC/cppcheck.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366014 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineOutliner.h

index 377df4e18a2a0063bb45d0195031d205111b8614..3868fa41557996fe0aec84cd4ea9fcf71eb1df55 100644 (file)
@@ -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(); }