1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-23 18:18:00 +02:00

Improved extern type constraints

This commit is contained in:
Brian Fiete 2020-08-10 13:29:05 -07:00
parent 99989d5472
commit 32cd6d8841
8 changed files with 280 additions and 85 deletions

View file

@ -569,6 +569,11 @@ struct BfIRTypeData
TypeKind mKind;
int mId;
operator bool()
{
return (mId != -1);
}
};
struct BfIRType : public BfIRTypeData
@ -586,12 +591,7 @@ public:
mId = typeData.mId;
}
BfIRType(const BfIRValue& val) { mKind = TypeKind_Stream; mId = val.mId; }
operator bool()
{
return (mId != -1);
}
BfIRType(const BfIRValue& val) { mKind = TypeKind_Stream; mId = val.mId; }
};
struct BfIRBlock : public BfIRValue