mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
Fix -Wunused-lambda-capture for Release build.
`I` and `this` are used only in assert or DEBUG, so they are unused in Release build. llvm-svn: 310934
This commit is contained in:
parent
3295c10856
commit
aaf73b4bf2
@ -1023,7 +1023,7 @@ private:
|
||||
template <typename ReadyListType>
|
||||
void initialFillReadyList(ReadyListType &ReadyList) {
|
||||
for (auto *I = ScheduleStart; I != ScheduleEnd; I = I->getNextNode()) {
|
||||
doForAllOpcodes(I, [&ReadyList, I](ScheduleData *SD) {
|
||||
doForAllOpcodes(I, [&](ScheduleData *SD) {
|
||||
if (SD->isSchedulingEntity() && SD->isReady()) {
|
||||
ReadyList.insert(SD);
|
||||
DEBUG(dbgs() << "SLP: initially in ready list: " << *I << "\n");
|
||||
@ -3672,7 +3672,7 @@ void BoUpSLP::BlockScheduling::resetSchedule() {
|
||||
assert(ScheduleStart &&
|
||||
"tried to reset schedule on block which has not been scheduled");
|
||||
for (Instruction *I = ScheduleStart; I != ScheduleEnd; I = I->getNextNode()) {
|
||||
doForAllOpcodes(I, [this](ScheduleData *SD) {
|
||||
doForAllOpcodes(I, [&](ScheduleData *SD) {
|
||||
assert(isInSchedulingRegion(SD) &&
|
||||
"ScheduleData not in scheduling region");
|
||||
SD->IsScheduled = false;
|
||||
|
Loading…
Reference in New Issue
Block a user