diff options
| author | Yong He <yonghe@outlook.com> | 2018-01-16 15:38:36 -0500 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2018-01-16 15:38:36 -0500 |
| commit | a74a5494b34e2b41a294042ab8b3e7bce115dcba (patch) | |
| tree | 9895842d33893b9a233f58964cfa55b3974d6134 /source/slang/syntax.h | |
| parent | 59691aeeb013c5bb7cdaa31a6fc572eebd8be610 (diff) | |
bug fixes to get falcor example shader code to compile.
1. prevent cyclic lookups when an interface inherits transitively from itself.
2. in `createGlobalGenericParamSubstitution`, create a default substitution for the base type declref before using it to lookup the witness table.
Diffstat (limited to 'source/slang/syntax.h')
| -rw-r--r-- | source/slang/syntax.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/syntax.h b/source/slang/syntax.h index 93e421977..b37301dec 100644 --- a/source/slang/syntax.h +++ b/source/slang/syntax.h @@ -969,6 +969,8 @@ namespace Slang // used at all, to avoid allocation. List<LookupResultItem> items; + HashSet<DeclRef<ContainerDecl>> lookedupDecls; + // Was at least one result found? bool isValid() const { return item.declRef.getDecl() != nullptr; } @@ -1009,7 +1011,6 @@ namespace Slang struct LookupRequest { SemanticsVisitor* semantics = nullptr; - RefPtr<Scope> scope = nullptr; RefPtr<Scope> endScope = nullptr; |
