[llvm] r231405 - Fix uninitialized memory references in WinEHPrepare

Andrew Kaylor andrew.kaylor at intel.com
Thu Mar 5 13:06:42 PST 2015


Author: akaylor
Date: Thu Mar  5 15:06:42 2015
New Revision: 231405

URL: http://llvm.org/viewvc/llvm-project?rev=231405&view=rev
Log:
Fix uninitialized memory references in WinEHPrepare

Modified:
    llvm/trunk/lib/CodeGen/WinEHPrepare.cpp

Modified: llvm/trunk/lib/CodeGen/WinEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/WinEHPrepare.cpp?rev=231405&r1=231404&r2=231405&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/WinEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/WinEHPrepare.cpp Thu Mar  5 15:06:42 2015
@@ -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,





More information about the llvm-commits mailing list