diff options
| -rw-r--r-- | source/slang/slang-ast-expr.h | 2 | ||||
| -rw-r--r-- | source/slang/slang-check-decl.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-ast-expr.h b/source/slang/slang-ast-expr.h index a5024460b..d79982b5d 100644 --- a/source/slang/slang-ast-expr.h +++ b/source/slang/slang-ast-expr.h @@ -35,7 +35,7 @@ class OverloadedExpr : public Expr SLANG_AST_CLASS(OverloadedExpr) // The name that was looked up and found to be overloaded - Name* name; + Name* name = nullptr; // Optional: the base expression is this overloaded result // arose from a member-reference expression. diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp index 726781fb0..0f6075903 100644 --- a/source/slang/slang-check-decl.cpp +++ b/source/slang/slang-check-decl.cpp @@ -2062,6 +2062,7 @@ namespace Slang // expression. // auto synBase = m_astBuilder->create<OverloadedExpr>(); + synBase->name = requiredMemberDeclRef.getDecl()->getName(); synBase->lookupResult2 = lookupResult; // If `synThis` is non-null, then we will use it as the base of |
