diff options
| author | Yong He <yonghe@outlook.com> | 2022-12-07 12:52:20 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-07 12:52:20 -0800 |
| commit | 70714705747f3491c55e14b74f87641010351d6c (patch) | |
| tree | 8b0e3905892da915b731521dbd3dc0c86482b406 /source/slang/slang-ir-any-value-marshalling.cpp | |
| parent | 3a3a8b5f7701109fc413f42692c4de5769870489 (diff) | |
Remove `construct` IR op. (#2555)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-any-value-marshalling.cpp')
| -rw-r--r-- | source/slang/slang-ir-any-value-marshalling.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/slang-ir-any-value-marshalling.cpp b/source/slang/slang-ir-any-value-marshalling.cpp index 446d8faf0..de8fd4dd5 100644 --- a/source/slang/slang-ir-any-value-marshalling.cpp +++ b/source/slang/slang-ir-any-value-marshalling.cpp @@ -289,7 +289,7 @@ namespace Slang { srcVal = builder->emitBitCast(builder->getType(kIROp_UInt16Type), srcVal); } - srcVal = builder->emitConstructorInst(builder->getType(kIROp_UIntType), 1, &srcVal); + srcVal = builder->emitCast(builder->getType(kIROp_UIntType), srcVal); auto dstAddr = builder->emitFieldAddress( uintPtrType, anyValueVar, @@ -340,7 +340,7 @@ namespace Slang { auto srcVal = builder->emitLoad(concreteVar); auto uint64Val = builder->emitBitCast(builder->getUInt64Type(), srcVal); - auto lowBits = builder->emitConstructorInst(builder->getUIntType(), 1, &uint64Val); + auto lowBits = builder->emitCast(builder->getUIntType(), uint64Val); auto shiftedBits = builder->emitShr( builder->getUInt64Type(), uint64Val, @@ -468,11 +468,11 @@ namespace Slang } if (dataType->getOp() == kIROp_Int16Type) { - srcVal = builder->emitConstructorInst(builder->getType(kIROp_Int16Type), 1, &srcVal); + srcVal = builder->emitCast(builder->getType(kIROp_Int16Type), srcVal); } else { - srcVal = builder->emitConstructorInst(builder->getType(kIROp_UInt16Type), 1, &srcVal); + srcVal = builder->emitCast(builder->getType(kIROp_UInt16Type), srcVal); } if (dataType->getOp() == kIROp_HalfType) { |
