From af7f40063dfed1c651d33b93956c7623a7d2c050 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 29 Nov 2022 14:16:05 -0800 Subject: Complete removal of DifferentialBottom type. (#2537) Co-authored-by: Yong He --- source/slang/slang-ir.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'source/slang/slang-ir.cpp') diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index c12872320..ecfcab7f5 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -2214,17 +2214,6 @@ namespace Slang return _findOrEmitConstant(keyInst); } - IRInst* IRBuilder::getDifferentialBottom() - { - IRType* type = getDifferentialBottomType(); - IRConstant keyInst; - memset(&keyInst, 0, sizeof(keyInst)); - keyInst.m_op = kIROp_DifferentialBottomValue; - keyInst.typeUse.usedValue = type; - keyInst.value.intVal = 0; - return (IRInst*)_findOrEmitConstant(keyInst); - } - IRStringLit* IRBuilder::getStringValue(const UnownedStringSlice& inSlice) { IRConstant keyInst; @@ -2607,12 +2596,6 @@ namespace Slang IRDynamicType* IRBuilder::getDynamicType() { return (IRDynamicType*)getType(kIROp_DynamicType); } - IRDifferentialBottomType* IRBuilder::getDifferentialBottomType() - { - return (IRDifferentialBottomType*)getType(kIROp_DifferentialBottomType); - } - - IRAssociatedType* IRBuilder::getAssociatedType(ArrayView constraintTypes) { return (IRAssociatedType*)getType(kIROp_AssociatedType, -- cgit v1.2.3