Adds a JIT based exception handling example to the examples directory.
[oota-llvm.git] / lib / CodeGen / MachineModuleInfo.cpp
index ed5bb5e5410c3d583552974095ac79096791cbb1..5052af7bd8f04535cce680d256e32ebb26fbb0e4 100644 (file)
@@ -40,6 +40,7 @@ MachineModuleInfoImpl::~MachineModuleInfoImpl() {}
 MachineModuleInfo::MachineModuleInfo()
 : ImmutablePass(&ID)
 , ObjFileMMI(0)
+, CurCallSite(0)
 , CallsEHReturn(0)
 , CallsUnwindInit(0)
 , DbgInfoAvailable(false) {
@@ -71,6 +72,7 @@ void MachineModuleInfo::EndFunction() {
 
   // Clean up exception info.
   LandingPads.clear();
+  CallSiteMap.clear();
   TypeInfos.clear();
   FilterIds.clear();
   FilterEnds.clear();