From 18296bdf03a9d0dac3392ff9d84d1e23baa3ea88 Mon Sep 17 00:00:00 2001 From: Andrew Kaylor Date: Thu, 5 Mar 2015 21:06:42 +0000 Subject: [PATCH] Fix uninitialized memory references in WinEHPrepare git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231405 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/WinEHPrepare.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/WinEHPrepare.cpp b/lib/CodeGen/WinEHPrepare.cpp index eefb278f0a7..3304aeb3e44 100644 --- a/lib/CodeGen/WinEHPrepare.cpp +++ b/lib/CodeGen/WinEHPrepare.cpp @@ -90,7 +90,9 @@ public: FrameVarInfoMap &VarInfo) : LPI(LPI), Materializer(HandlerFn, VarInfo), SelectorIDType(Type::getInt32Ty(LPI->getContext())), - Int8PtrType(Type::getInt8PtrTy(LPI->getContext())) {} + Int8PtrType(Type::getInt8PtrTy(LPI->getContext())), + ExtractedEHPtr(nullptr), ExtractedSelector(nullptr), + EHPtrStoreAddr(nullptr), SelectorStoreAddr(nullptr) {} CloningAction handleInstruction(ValueToValueMapTy &VMap, const Instruction *Inst, -- 2.34.1