mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Cache ConstExpr ToString, fix const arg int comparison in cast
This commit is contained in:
parent
337a94b8b5
commit
d341104a57
5 changed files with 27 additions and 11 deletions
|
@ -2611,6 +2611,7 @@ class BfConstExprValueType : public BfDependedType
|
|||
public:
|
||||
BfType* mType;
|
||||
BfVariant mValue;
|
||||
String mValueString;
|
||||
|
||||
public:
|
||||
~BfConstExprValueType();
|
||||
|
@ -2827,7 +2828,7 @@ public:
|
|||
|
||||
// checkEntry->mType can be NULL if we're in the process of filling it in (and this Insert is from an element type)
|
||||
// OR if the type resolution failed after node insertion
|
||||
if ((checkEntry->mValue != NULL) && (hashVal == checkEntry->mHashCode) && (Equals(checkEntry->mValue, findType, ctx)))
|
||||
if ((checkEntry->mValue != NULL) && (hashVal == checkEntry->mHashCode) && (Equals(checkEntry->mValue, findType, ctx)))
|
||||
{
|
||||
*entryPtr = EntryRef(this, checkEntryIdx);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue