Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ bool MetadataVerifier::verifyScalarEntry(
msgpack::MapDocNode &MapNode, StringRef Key, bool Required,
msgpack::Type SKind,
function_ref<bool(msgpack::DocNode &)> verifyValue) {
return verifyEntry(MapNode, Key, Required, [=](msgpack::DocNode &Node) {
return verifyScalar(Node, SKind, verifyValue);
});
return verifyEntry(MapNode, Key, Required,
[this, SKind, verifyValue](msgpack::DocNode &Node) {
return verifyScalar(Node, SKind, verifyValue);
});
}

bool MetadataVerifier::verifyIntegerEntry(msgpack::MapDocNode &MapNode,
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Support/Parallel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ThreadPoolExecutor : public Executor {
auto &Thread0 = Threads[0];
Thread0 = std::thread([this, S] {
for (unsigned I = 1; I < ThreadCount; ++I) {
Threads.emplace_back([=] { work(S, I); });
Threads.emplace_back([this, S, I] { work(S, I); });
if (Stop)
break;
}
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ class AMDGPUOperand : public MCParsedAsmOperand {
bool isEndpgm() const;

auto getPredicate(std::function<bool(const AMDGPUOperand &Op)> P) const {
return [=](){ return P(*this); };
return [this, P]() { return P(*this); };
}

StringRef getToken() const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ ParseResult DimLvlMapParser::parseLvlSpecList() {
const auto loc = parser.getCurrentLocation();
const auto res = parser.parseCommaSeparatedList(
mlir::OpAsmParser::Delimiter::Paren,
[=]() -> ParseResult { return parseLvlSpec(requireLvlVarBinding); },
[this, requireLvlVarBinding]() -> ParseResult {
return parseLvlSpec(requireLvlVarBinding);
},
" in level-specifier list");
FAILURE_IF_FAILED(res)
const auto specLvlRank = lvlSpecs.size();
Expand Down
2 changes: 1 addition & 1 deletion mlir/lib/Transforms/InlinerPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void InlinerPass::runOnOperation() {
}

// By default, assume that any inlining is profitable.
auto profitabilityCb = [=](const Inliner::ResolvedCall &call) {
auto profitabilityCb = [this](const Inliner::ResolvedCall &call) {
return isProfitableToInline(call, inliningThreshold);
};

Expand Down