Skip to content
Merged
Prev Previous commit
Next Next commit
Don't record an invalid ClassInfo
  • Loading branch information
pcanal committed Sep 6, 2019
commit ada61666c1b0f4d685b0ad173d13084a0284d75c
10 changes: 6 additions & 4 deletions core/meta/src/TClass.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1404,10 +1404,12 @@ void TClass::Init(const char *name, Version_t cversion,
}
}

fClassInfo = gInterpreter->ClassInfo_Factory(givenInfo);
fCanLoadClassInfo = false; // avoids calls to LoadClassInfo() if info is already loaded
if (fState <= kEmulated)
fState = kInterpreted;
if (!invalid) {
fClassInfo = gInterpreter->ClassInfo_Factory(givenInfo);
fCanLoadClassInfo = false; // avoids calls to LoadClassInfo() if info is already loaded
if (fState <= kEmulated)
fState = kInterpreted;
}
}

// We need to check if the class it is not fwd declared for the cases where we
Expand Down