diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2009-07-16 21:24:13 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2009-07-16 21:24:13 +0000 |
| commit | c7895d3cf6398d2e24322a8433a8a1bbf688c1a0 (patch) | |
| tree | 20ca93018866eed5bc413018ec40fe222906fb75 /llvm | |
| parent | dde5c8d52243fdfa66cacff3e5241d17313cbaa5 (diff) | |
| download | bcm5719-llvm-c7895d3cf6398d2e24322a8433a8a1bbf688c1a0.tar.gz bcm5719-llvm-c7895d3cf6398d2e24322a8433a8a1bbf688c1a0.zip | |
Silence warning in Linux builds:
X86InstrInfo.cpp:2272: warning: suggest explicit braces to avoid ambiguous 'else'
llvm-svn: 76105
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index 7cd5f35366b..c124f047e97 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/lib/Target/X86/X86InstrInfo.cpp @@ -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(); |

