git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185071
91177308-0d34-0410-b5e6-
96231b3b80d8
// 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)