We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cdd17f commit 2a574faCopy full SHA for 2a574fa
lib/Common/DataStructures/ImmutableList.h
@@ -749,12 +749,16 @@ namespace regex
749
return result;
750
}
751
752
- bool __attribute__((noinline)) CheckNull( void* obj ) { return obj == nullptr; }
+#ifndef _MSC_VER
753
+ bool __attribute__((noinline)) CheckEq(void* obj1, void *obj2) { return obj1 == obj2; }
754
+#else
755
+#define CheckEq(a, b) (a) == (b)
756
+#endif
757
758
// Info: Return true if the list is empty.
759
bool IsEmpty()
760
{
- return CheckNull(this);
761
+ return CheckEq(this, Empty());
762
763
764
// Info: Return a list containing the given single value
0 commit comments