mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Fix -Wcast-qual warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101655 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -272,8 +272,8 @@ void ScheduleDAGInstrs::BuildSchedGraph(AliasAnalysis *AA) {
|
||||
// perform its own adjustments.
|
||||
const SDep& dep = SDep(SU, SDep::Data, LDataLatency, Reg);
|
||||
if (!UnitLatencies) {
|
||||
ComputeOperandLatency(SU, UseSU, (SDep &)dep);
|
||||
ST.adjustSchedDependency(SU, UseSU, (SDep &)dep);
|
||||
ComputeOperandLatency(SU, UseSU, const_cast<SDep &>(dep));
|
||||
ST.adjustSchedDependency(SU, UseSU, const_cast<SDep &>(dep));
|
||||
}
|
||||
UseSU->addPred(dep);
|
||||
}
|
||||
@@ -285,8 +285,8 @@ void ScheduleDAGInstrs::BuildSchedGraph(AliasAnalysis *AA) {
|
||||
continue;
|
||||
const SDep& dep = SDep(SU, SDep::Data, DataLatency, *Alias);
|
||||
if (!UnitLatencies) {
|
||||
ComputeOperandLatency(SU, UseSU, (SDep &)dep);
|
||||
ST.adjustSchedDependency(SU, UseSU, (SDep &)dep);
|
||||
ComputeOperandLatency(SU, UseSU, const_cast<SDep &>(dep));
|
||||
ST.adjustSchedDependency(SU, UseSU, const_cast<SDep &>(dep));
|
||||
}
|
||||
UseSU->addPred(dep);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user