[llvm] r368865 - Fix cppcheck + MSVC analyzer uninitialized member variable warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 09:03:37 PDT 2019
Author: rksimon
Date: Wed Aug 14 09:03:37 2019
New Revision: 368865
URL: http://llvm.org/viewvc/llvm-project?rev=368865&view=rev
Log:
Fix cppcheck + MSVC analyzer uninitialized member variable warning. NFCI.
Modified:
llvm/trunk/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
Modified: llvm/trunk/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h?rev=368865&r1=368864&r2=368865&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h (original)
+++ llvm/trunk/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h Wed Aug 14 09:03:37 2019
@@ -35,7 +35,7 @@ class TargetLoweringObjectFileELF : publ
protected:
MCSymbolRefExpr::VariantKind PLTRelativeVariantKind =
MCSymbolRefExpr::VK_None;
- const TargetMachine *TM;
+ const TargetMachine *TM = nullptr;
public:
TargetLoweringObjectFileELF() = default;
More information about the llvm-commits
mailing list