Fix another occurrence of needing to use member accessors.

llvm-svn: 297637
This commit is contained in:
Zachary Turner
2017-03-13 16:39:00 +00:00
parent 368c3fa657
commit db6310c632

View File

@@ -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.