mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-13 08:35:46 +00:00
Silence warning in Linux builds:
X86InstrInfo.cpp:2272: warning: suggest explicit braces to avoid ambiguous 'else' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76105 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
34ccf037fe
commit
93e55deeba
@ -2269,15 +2269,16 @@ MachineInstr* X86InstrInfo::foldMemoryOperandImpl(MachineFunction &MF,
|
||||
|
||||
// x86-32 PIC requires a PIC base register for constant pools.
|
||||
unsigned PICBase = 0;
|
||||
if (TM.getRelocationModel() == Reloc::PIC_)
|
||||
if (TM.getRelocationModel() == Reloc::PIC_) {
|
||||
if (TM.getSubtarget<X86Subtarget>().is64Bit())
|
||||
PICBase = X86::RIP;
|
||||
else
|
||||
else
|
||||
// FIXME: PICBase = TM.getInstrInfo()->getGlobalBaseReg(&MF);
|
||||
// This doesn't work for several reasons.
|
||||
// 1. GlobalBaseReg may have been spilled.
|
||||
// 2. It may not be live at MI.
|
||||
return false;
|
||||
}
|
||||
|
||||
// Create a v4i32 constant-pool entry.
|
||||
MachineConstantPool &MCP = *MF.getConstantPool();
|
||||
|
Loading…
x
Reference in New Issue
Block a user