diff options
Diffstat (limited to 'source/slang/ir.h')
| -rw-r--r-- | source/slang/ir.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source/slang/ir.h b/source/slang/ir.h index 3d4899824..8f350827a 100644 --- a/source/slang/ir.h +++ b/source/slang/ir.h @@ -20,7 +20,7 @@ class FuncType; class Layout; class Type; class Session; - +class Name; struct IRFunc; struct IRGlobalValueWithCode; struct IRInst; @@ -480,7 +480,7 @@ struct IRGlobalValue : IRValue // The mangled name, for a symbol that should have linkage, // or which might have multiple declarations. - String mangledName; + Name* mangledName = nullptr; IRGlobalValue* nextGlobalValue; @@ -500,11 +500,6 @@ struct IRGlobalValue : IRValue void removeFromParent(); void moveToEnd(); - virtual void dispose() override - { - IRValue::dispose(); - mangledName = String(); - } }; /// @brief A global value that potentially holds executable code. |
