forked from OSchip/llvm-project
Fix uninitialized value warnings in StatepointBase constructors. NFCI.
llvm-svn: 360335
This commit is contained in:
parent
a186edbc00
commit
f45c8b2175
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue