[Lldb-commits] [lldb] r297637 - Fix another occurrence of needing to use member accessors.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 13 09:39:00 PDT 2017
Author: zturner
Date: Mon Mar 13 11:39:00 2017
New Revision: 297637
URL: http://llvm.org/viewvc/llvm-project?rev=297637&view=rev
Log:
Fix another occurrence of needing to use member accessors.
Modified:
lldb/trunk/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
Modified: lldb/trunk/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp?rev=297637&r1=297636&r2=297637&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp (original)
+++ lldb/trunk/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp Mon Mar 13 11:39:00 2017
@@ -746,8 +746,8 @@ private:
int MatchAttributeIndex(llvm::StringRef attribute_name) const {
for (const auto &Item : llvm::enumerate(s_filter_attributes)) {
- if (attribute_name == Item.Value)
- return Item.Index;
+ if (attribute_name == Item.value())
+ return Item.index();
}
// We didn't match anything.
More information about the lldb-commits
mailing list