diff options
| author | Yong He <yonghe@outlook.com> | 2020-06-24 14:22:52 -0700 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2020-06-24 18:10:15 -0700 |
| commit | 161c525c56dfd4feb3db528f09169412d0b7ed55 (patch) | |
| tree | 4694c043749147520f17b29da10591b72144bc03 /source | |
| parent | 0ca75fe002f346f6ab9b77f40c0576d2905560f1 (diff) | |
Fixes.
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-emit-c-like.cpp | 2 | ||||
| -rw-r--r-- | source/slang/slang-ir.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp index 2605723c7..faf7b8c1d 100644 --- a/source/slang/slang-emit-c-like.cpp +++ b/source/slang/slang-emit-c-like.cpp @@ -3633,7 +3633,7 @@ void CLikeSourceEmitter::ensureInstOperandsRec(ComputeEmitActionsContext* ctx, I // only need the type they point to to be forward-declared. // Similarly, a `call` instruction only needs the callee // to be forward-declared, etc. - + ensureInstOperand(ctx, inst->getOperand(ii), requiredLevel); } diff --git a/source/slang/slang-ir.h b/source/slang/slang-ir.h index b41c94e7f..3af800404 100644 --- a/source/slang/slang-ir.h +++ b/source/slang/slang-ir.h @@ -458,7 +458,7 @@ struct IRInst void setOperand(UInt index, IRInst* value) { - getOperands()[index].set(value); + getOperands()[index].init(this, value); } |
