Fix uninitialized value warnings in StatepointBase constructors. NFCI.

llvm-svn: 360335
This commit is contained in:
Simon Pilgrim 2019-05-09 12:21:00 +00:00
parent a186edbc00
commit f45c8b2175
1 changed files with 2 additions and 5 deletions

View File

@ -76,14 +76,11 @@ class StatepointBase {
protected:
explicit StatepointBase(InstructionTy *I) {
if (isStatepoint(I)) {
StatepointCall = cast<CallBaseTy>(I);
}
StatepointCall = isStatepoint(I) ? cast<CallBaseTy>(I) : nullptr;
}
explicit StatepointBase(CallBaseTy *Call) {
if (isStatepoint(Call))
StatepointCall = Call;
StatepointCall = isStatepoint(Call) ? Call : nullptr;
}
public: