[llvm] r365194 - Fix MSVC/cppcheck Use::Next isn't initialized warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 5 05:12:23 PDT 2019
Author: rksimon
Date: Fri Jul 5 05:12:23 2019
New Revision: 365194
URL: http://llvm.org/viewvc/llvm-project?rev=365194&view=rev
Log:
Fix MSVC/cppcheck Use::Next isn't initialized warning. NFCI.
Modified:
llvm/trunk/include/llvm/IR/Use.h
Modified: llvm/trunk/include/llvm/IR/Use.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Use.h?rev=365194&r1=365193&r2=365194&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Use.h (original)
+++ llvm/trunk/include/llvm/IR/Use.h Fri Jul 5 05:12:23 2019
@@ -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); }
More information about the llvm-commits
mailing list