From 161c525c56dfd4feb3db528f09169412d0b7ed55 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 24 Jun 2020 14:22:52 -0700 Subject: Fixes. --- source/slang/slang-emit-c-like.cpp | 2 +- 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); } -- cgit v1.2.3