diff options
| author | Dan Gohman <gohman@apple.com> | 2010-04-15 01:51:59 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-04-15 01:51:59 +0000 |
| commit | bcaf681cdef13dcf4a863288c3329be96f96bd14 (patch) | |
| tree | 74e33ebe55a3f42cbcab17b94b633920dc026367 /llvm/lib/Target/X86/X86InstrInfo.cpp | |
| parent | 1bbc7086ff89a53b2c4e69e9d8bff959030cb5ed (diff) | |
| download | bcm5719-llvm-bcaf681cdef13dcf4a863288c3329be96f96bd14.tar.gz bcm5719-llvm-bcaf681cdef13dcf4a863288c3329be96f96bd14.zip | |
Add const qualifiers to CodeGen's use of LLVM IR constructs.
llvm-svn: 101334
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index 66b6562ba58..1192a471bd7 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/lib/Target/X86/X86InstrInfo.cpp @@ -2629,7 +2629,7 @@ MachineInstr* X86InstrInfo::foldMemoryOperandImpl(MachineFunction &MF, Ty = Type::getDoubleTy(MF.getFunction()->getContext()); else Ty = VectorType::get(Type::getInt32Ty(MF.getFunction()->getContext()), 4); - Constant *C = LoadMI->getOpcode() == X86::V_SETALLONES ? + const Constant *C = LoadMI->getOpcode() == X86::V_SETALLONES ? Constant::getAllOnesValue(Ty) : Constant::getNullValue(Ty); unsigned CPI = MCP.getConstantPoolIndex(C, Alignment); |

