diff options
Diffstat (limited to 'lldb/source/Symbol/ObjectFile.cpp')
-rw-r--r-- | lldb/source/Symbol/ObjectFile.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/Symbol/ObjectFile.cpp b/lldb/source/Symbol/ObjectFile.cpp index 5451f6941f7..1187e7996b3 100644 --- a/lldb/source/Symbol/ObjectFile.cpp +++ b/lldb/source/Symbol/ObjectFile.cpp @@ -517,12 +517,13 @@ bool ObjectFile::SplitArchivePathWithObject (const char *path_with_object, FileSpec &archive_file, ConstString &archive_object, bool must_exist) { RegularExpression g_object_regex("(.*)\\(([^\\)]+)\\)$"); - if (g_object_regex.Execute (path_with_object, 2)) + RegularExpression::Match regex_match(2); + if (g_object_regex.Execute (path_with_object, ®ex_match)) { std::string path; std::string obj; - if (g_object_regex.GetMatchAtIndex (path_with_object, 1, path) && - g_object_regex.GetMatchAtIndex (path_with_object, 2, obj)) + if (regex_match.GetMatchAtIndex (path_with_object, 1, path) && + regex_match.GetMatchAtIndex (path_with_object, 2, obj)) { archive_file.SetFile (path.c_str(), false); archive_object.SetCString(obj.c_str()); |