From 507c594d4e24e4373c95b54a69e5d229026ff9dc Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 5 Jul 2019 12:12:23 +0000 Subject: [PATCH] Fix MSVC/cppcheck Use::Next isn't initialized warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365194 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/Use.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/IR/Use.h b/include/llvm/IR/Use.h index 6d29d47acd6..034ca2c8ac2 100644 --- a/include/llvm/IR/Use.h +++ b/include/llvm/IR/Use.h @@ -139,7 +139,7 @@ private: const Use *getImpliedUser() const LLVM_READONLY; Value *Val = nullptr; - Use *Next; + Use *Next = nullptr; PointerIntPair Prev; void setPrev(Use **NewPrev) { Prev.setPointer(NewPrev); } -- 2.50.1