forked from OSchip/llvm-project
Sparc - fix uninitialized variable warnings. NFCI.
This commit is contained in:
parent
66f2ed0746
commit
b3be859baa
|
@ -37,7 +37,7 @@ static cl::opt<bool> DisableDelaySlotFiller(
|
|||
|
||||
namespace {
|
||||
struct Filler : public MachineFunctionPass {
|
||||
const SparcSubtarget *Subtarget;
|
||||
const SparcSubtarget *Subtarget = nullptr;
|
||||
|
||||
static char ID;
|
||||
Filler() : MachineFunctionPass(ID) {}
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace llvm {
|
|||
class LLVM_LIBRARY_VISIBILITY LEONMachineFunctionPass
|
||||
: public MachineFunctionPass {
|
||||
protected:
|
||||
const SparcSubtarget *Subtarget;
|
||||
const SparcSubtarget *Subtarget = nullptr;
|
||||
const int LAST_OPERAND = -1;
|
||||
|
||||
// this vector holds free registers that we allocate in groups for some of the
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace {
|
|||
class SparcDAGToDAGISel : public SelectionDAGISel {
|
||||
/// Subtarget - Keep a pointer to the Sparc Subtarget around so that we can
|
||||
/// make the right decision when generating code for different targets.
|
||||
const SparcSubtarget *Subtarget;
|
||||
const SparcSubtarget *Subtarget = nullptr;
|
||||
public:
|
||||
explicit SparcDAGToDAGISel(SparcTargetMachine &tm) : SelectionDAGISel(tm) {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue