diff --git a/IDEHelper/Compiler/BfModuleTypeUtils.cpp b/IDEHelper/Compiler/BfModuleTypeUtils.cpp index 4c8476ce..0b067e4d 100644 --- a/IDEHelper/Compiler/BfModuleTypeUtils.cpp +++ b/IDEHelper/Compiler/BfModuleTypeUtils.cpp @@ -13879,8 +13879,6 @@ BfIRValue BfModule::CastToValue(BfAstNode* srcNode, BfTypedValue typedVal, BfTyp if (mIsComptimeModule) return mBfIRBuilder->GetUndefConstValue(mBfIRBuilder->MapType(toType)); - BF_ASSERT(mBfIRBuilder->mIgnoreWrites); - auto undefConst = (BfConstantUndef*)constant; BfType* bfType = NULL;