From 05ee8bd4e34d2bed81667d3363b013aa2b3e0513 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 llvm-svn: 231405 --- llvm/lib/CodeGen/WinEHPrepare.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp index eefb278..3304aeb 100644 --- a/llvm/lib/CodeGen/WinEHPrepare.cpp +++ b/llvm/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.7.4