mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
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:
parent
88a9e6a0b3
commit
872bb36810
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user