diff options
| author | Yong He <yonghe@outlook.com> | 2020-07-15 11:39:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-15 11:39:11 -0700 |
| commit | e9d5ecbf19147af6e1473020b64ced4286b79079 (patch) | |
| tree | 93413fe8490cea74e36f45678ad720d92d2b5e3e /source/slang/slang-ir.cpp | |
| parent | 723c9b1b3607ba910abbeb72f4f13bdff3cbd502 (diff) | |
Refactor lower-generics pass into separate subpasses. (#1442)
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index efb8b3b27..fc4b71138 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -2919,7 +2919,7 @@ namespace Slang IRStructType* structType = createInst<IRStructType>( this, kIROp_StructType, - nullptr); + getTypeKind()); addGlobalValue(this, structType); return structType; } @@ -2929,7 +2929,7 @@ namespace Slang IRInterfaceType* interfaceType = createInst<IRInterfaceType>( this, kIROp_InterfaceType, - nullptr, + getTypeKind(), operandCount, operands); addGlobalValue(this, interfaceType); |
