]> granicus.if.org Git - llvm/commitdiff
Fix MSVC/cppcheck Use::Next isn't initialized warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 5 Jul 2019 12:12:23 +0000 (12:12 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 5 Jul 2019 12:12:23 +0000 (12:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365194 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Use.h

index 6d29d47acd630e5732371c963fb6fd7f003c2c16..034ca2c8ac23ecc03a140a4600640c219365c08e 100644 (file)
@@ -139,7 +139,7 @@ private:
   const Use *getImpliedUser() const LLVM_READONLY;
 
   Value *Val = nullptr;
-  Use *Next;
+  Use *Next = nullptr;
   PointerIntPair<Use **, 2, PrevPtrTag, PrevPointerTraits> Prev;
 
   void setPrev(Use **NewPrev) { Prev.setPointer(NewPrev); }