summaryrefslogtreecommitdiff
path: root/llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp')
-rw-r--r--llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp b/llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
index 33eed07c4629..8737dc0fc745 100644
--- a/llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
+++ b/llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
@@ -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,