diff options
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); } |
