mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-02 09:33:59 +00:00
Eliminate a warning compiling with llvm-gcc. (IMO the
warning is overzealous but gcc is what it is.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122829 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b1602abe63
commit
1e08cd1eae
@ -153,7 +153,7 @@ void emitSPUpdate(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI,
|
||||
if (ThisVal == (Is64Bit ? 8 : 4)) {
|
||||
// Use push / pop instead.
|
||||
unsigned Reg = isSub
|
||||
? (Is64Bit ? X86::RAX : X86::EAX)
|
||||
? (unsigned)(Is64Bit ? X86::RAX : X86::EAX)
|
||||
: findDeadCallerSavedReg(MBB, MBBI, TRI, Is64Bit);
|
||||
if (Reg) {
|
||||
Opc = isSub
|
||||
|
Loading…
x
Reference in New Issue
Block a user