1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Order-independent hash fixes

This commit is contained in:
Brian Fiete 2019-09-27 13:04:33 -07:00
parent 2ea5d31c37
commit d41a8c5683
3 changed files with 97 additions and 6 deletions

View file

@ -1764,6 +1764,8 @@ public:
BE_VALUE_TYPE(BeDbgFunction, BeMDNode);
public:
int mIdx;
BeMDNode* mScope;
BeDbgFile* mFile;
int mLine;
@ -1793,6 +1795,7 @@ public:
public:
BeDbgFunction()
{
mIdx = -1;
mScope = NULL;
mFile = NULL;
mLine = -1;
@ -2009,8 +2012,8 @@ public:
virtual void HashContent(BeHashContext& hashCtx) override
{
hashCtx.Mixin(TypeId);
hashCtx.Mixin(mName);
hashCtx.Mixin(mLinkageName);
hashCtx.MixinStr(mName);
hashCtx.MixinStr(mLinkageName);
if (mFile != NULL)
mFile->HashReference(hashCtx);
hashCtx.Mixin(mLineNum);