diff options
Diffstat (limited to 'lib/Target')
| -rw-r--r-- | lib/Target/ARM/ARMLoadStoreOptimizer.cpp | 4 | ||||
| -rw-r--r-- | lib/Target/X86/X86FastISel.cpp | 2 | 
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp index 047552f627db..09b8ce07d222 100644 --- a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp +++ b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp @@ -697,7 +697,7 @@ bool ARMLoadStoreOpt::LoadStoreMultipleOpti(MachineBasicBlock &MBB) {          // LDM/STM ops.          for (unsigned i = 0, e = MBBII.size(); i < e; ++i)            if (mergeBaseUpdateLSMultiple(MBB, MBBII[i], Advance, MBBI)) -            NumMerges++; +            ++NumMerges;          NumMerges += MBBII.size();          // Try folding preceeding/trailing base inc/dec into those load/store @@ -705,7 +705,7 @@ bool ARMLoadStoreOpt::LoadStoreMultipleOpti(MachineBasicBlock &MBB) {          for (unsigned i = 0; i != NumMemOps; ++i)            if (!MemOps[i].Merged)              if (mergeBaseUpdateLoadStore(MBB, MemOps[i].MBBI, TII,Advance,MBBI)) -              NumMerges++; +              ++NumMerges;          // RS may be pointing to an instruction that's deleted.           RS->skipTo(prior(MBBI)); diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index b3667be0d035..33332e4cf745 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/lib/Target/X86/X86FastISel.cpp @@ -321,7 +321,7 @@ bool X86FastISel::X86FastEmitExtend(ISD::NodeType Opc, MVT DstVT,  /// X86SelectAddress - Attempt to fill in an address from the given value.  ///  bool X86FastISel::X86SelectAddress(Value *V, X86AddressMode &AM, bool isCall) { -  User *U; +  User *U = NULL;    unsigned Opcode = Instruction::UserOp1;    if (Instruction *I = dyn_cast<Instruction>(V)) {      Opcode = I->getOpcode();  | 
