Skip to content

Commit 024bf5c

Browse files
SWB fix
1 parent ba0fadf commit 024bf5c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/Common/DataStructures/BaseDictionary.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ namespace JsDiag
4444

4545
namespace JsUtil
4646
{
47+
struct contentStruct
48+
{
49+
Field(int) cs;
50+
};
4751
class NoResizeLock
4852
{
4953
public:
@@ -53,9 +57,7 @@ namespace JsUtil
5357
void _Releases_lock_(cs.cs) EndResize() {}
5458
private:
5559
// For prefast analysis, we need to have a somewhat similar shape for both locks
56-
struct {
57-
Field(int) cs;
58-
} cs;
60+
Field(contentStruct) cs;
5961
};
6062

6163
class AsymetricResizeLock

0 commit comments

Comments
 (0)