Specify explicit return type on lambda function
This commit is contained in:
parent
0dfbe3f90d
commit
bd9f8351f4
@ -2213,7 +2213,7 @@ void Builder::eliminateDeadDecorations() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
decorations.erase(std::remove_if(decorations.begin(), decorations.end(),
|
decorations.erase(std::remove_if(decorations.begin(), decorations.end(),
|
||||||
[&unreachable_definitions](std::unique_ptr<Instruction>& I) {
|
[&unreachable_definitions](std::unique_ptr<Instruction>& I) -> bool {
|
||||||
Instruction* inst = I.get();
|
Instruction* inst = I.get();
|
||||||
Id decoration_id = inst->getIdOperand(0);
|
Id decoration_id = inst->getIdOperand(0);
|
||||||
return unreachable_definitions.count(decoration_id) != 0;
|
return unreachable_definitions.count(decoration_id) != 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user