summaryrefslogtreecommitdiffstats
path: root/lldb/source/Utility/NameMatches.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Utility/NameMatches.cpp')
-rw-r--r--lldb/source/Utility/NameMatches.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Utility/NameMatches.cpp b/lldb/source/Utility/NameMatches.cpp
index bd30760d7e6..a15ab4bd065 100644
--- a/lldb/source/Utility/NameMatches.cpp
+++ b/lldb/source/Utility/NameMatches.cpp
@@ -36,8 +36,8 @@ bool lldb_private::NameMatches(const char *name, NameMatchType match_type,
case eNameMatchEndsWith:
return name_sref.endswith(match_sref);
case eNameMatchRegularExpression: {
- RegularExpression regex(match);
- return regex.Execute(name);
+ RegularExpression regex(match_sref);
+ return regex.Execute(name_sref);
} break;
}
}
OpenPOWER on IntegriCloud