Don't cast away constness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185071 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2013-06-27 11:07:42 +00:00
parent 88a9e6a0b3
commit 872bb36810

View File

@ -500,7 +500,8 @@ void X86DAGToDAGISel::PreprocessISelDAG() {
// If the source and destination are SSE registers, then this is a legal
// conversion that should not be lowered.
X86TargetLowering *X86Lowering = (X86TargetLowering*)getTargetLowering();
const X86TargetLowering *X86Lowering =
static_cast<const X86TargetLowering *>(getTargetLowering());
bool SrcIsSSE = X86Lowering->isScalarFPTypeInSSEReg(SrcVT);
bool DstIsSSE = X86Lowering->isScalarFPTypeInSSEReg(DstVT);
if (SrcIsSSE && DstIsSSE)