mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 20:29:53 +00:00
More coverity fixes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28266 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
03ea4c8326
commit
98d0d7d6f0
@ -197,7 +197,6 @@ MachineInstr* X86RegisterInfo::foldMemoryOperand(MachineInstr* MI,
|
||||
|
||||
/// 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);
|
||||
|
@ -40,7 +40,9 @@ public:
|
||||
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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user