File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -244,14 +244,10 @@ class LLVMCodeBuilderTest : public testing::Test
244244 return v1 < v2;
245245
246246 case OpType::StrCmpEQCS:
247- return v1.toString () == v2.toString () ;
247+ return string_compare_case_sensitive ( value_toStringPtr (& v1.data ()), value_toStringPtr (& v2.data ())) == 0 ;
248248
249- case OpType::StrCmpEQCI: {
250- // TODO: Use a custom function for string comparison
251- std::string str1 = v1.toString ();
252- std::string str2 = v2.toString ();
253- return strcasecmp (str1.c_str (), str2.c_str ()) == 0 ;
254- }
249+ case OpType::StrCmpEQCI:
250+ return string_compare_case_insensitive (value_toStringPtr (&v1.data ()), value_toStringPtr (&v2.data ())) == 0 ;
255251
256252 case OpType::And:
257253 return v1.toBool () && v2.toBool ();
You can’t perform that action at this time.
0 commit comments