Skip to content

Commit 274c029

Browse files
committed
Fix compile error on Linux
1 parent 899e0ec commit 274c029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/slang/slang-emit-spirv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1896,8 +1896,8 @@ struct SPIRVEmitContext : public SourceEmitterBase, public SPIRVEmitSharedContex
18961896
case kIROp_PrimitivesType:
18971897
return nullptr;
18981898
case kIROp_SPIRVNodePayloadArrayType:
1899-
if (auto nodePayloadArrayType = as<IRSPIRVNodePayloadArrayType>(inst))
19001899
{
1900+
auto nodePayloadArrayType = cast<IRSPIRVNodePayloadArrayType>(inst);
19011901
auto newType =
19021902
emitOpTypeNodePayloadArray(inst, nodePayloadArrayType->getRecordType());
19031903
return newType;

0 commit comments

Comments
 (0)