Changes in directory llvm/lib/Target/X86:

X86RegisterInfo.cpp updated: 1.151 -> 1.152
X86TargetMachine.h updated: 1.35 -> 1.36
---
Log message:

More coverity fixes


---
Diffs of the changes:  (+3 -2)

 X86RegisterInfo.cpp |    1 -
 X86TargetMachine.h  |    4 +++-
 2 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/X86/X86RegisterInfo.cpp
diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.151 
llvm/lib/Target/X86/X86RegisterInfo.cpp:1.152
--- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.151       Mon May  8 03:01:26 2006
+++ llvm/lib/Target/X86/X86RegisterInfo.cpp     Fri May 12 16:14:20 2006
@@ -197,7 +197,6 @@
 
   /// FIXME: This should obviously be autogenerated by tablegen when patterns
   /// are available!
-  MachineBasicBlock& MBB = *MI->getParent();
   if (i == 0) {
     switch(MI->getOpcode()) {
     case X86::XCHG8rr:   return MakeMRInst(X86::XCHG8mr ,FrameIndex, MI);


Index: llvm/lib/Target/X86/X86TargetMachine.h
diff -u llvm/lib/Target/X86/X86TargetMachine.h:1.35 
llvm/lib/Target/X86/X86TargetMachine.h:1.36
--- llvm/lib/Target/X86/X86TargetMachine.h:1.35 Fri May 12 01:33:48 2006
+++ llvm/lib/Target/X86/X86TargetMachine.h      Fri May 12 16:14:20 2006
@@ -40,7 +40,9 @@
   virtual const TargetFrameInfo  *getFrameInfo() const { return &FrameInfo; }
   virtual       TargetJITInfo    *getJITInfo()         { return &JITInfo; }
   virtual const TargetSubtarget  *getSubtargetImpl() const{ return &Subtarget; 
}
-  virtual       X86TargetLowering *getTargetLowering() { return &TLInfo; }
+  virtual       X86TargetLowering *getTargetLowering() const { 
+    return const_cast<X86TargetLowering*>(&TLInfo); 
+  }
   virtual const MRegisterInfo    *getRegisterInfo() const {
     return &InstrInfo.getRegisterInfo();
   }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to