summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-hlsl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-hlsl.cpp')
-rw-r--r--source/slang/slang-emit-hlsl.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/source/slang/slang-emit-hlsl.cpp b/source/slang/slang-emit-hlsl.cpp
index 30de45773..66902a624 100644
--- a/source/slang/slang-emit-hlsl.cpp
+++ b/source/slang/slang-emit-hlsl.cpp
@@ -1136,31 +1136,6 @@ void HLSLSourceEmitter::_emitPrefixTypeAttr(IRAttr* attr)
}
}
-void HLSLSourceEmitter::_emitInstAsVarInitializerImpl(IRInst* inst)
-{
- // Some opcodes can be folded into a variable initialization
- // by allowing the variable to be "default-constructed."
- //
- switch (inst->getOp())
- {
- case kIROp_AllocateOpaqueHandle:
- if (shouldFoldInstIntoUseSites(inst))
- {
- return;
- }
- break;
-
- default:
- break;
- }
-
- // We fall back to the default behavior for all targets,
- // which is to emit `inst` as an initial-value expression
- // after an `=`.
- //
- Super::_emitInstAsVarInitializerImpl(inst);
-}
-
void HLSLSourceEmitter::emitSimpleFuncParamImpl(IRParam* param)
{
emitRateQualifiers(param);