Commit bd9f8351 by baldurk

Specify explicit return type on lambda function

parent 0dfbe3f9
...@@ -2213,7 +2213,7 @@ void Builder::eliminateDeadDecorations() { ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment