diff --git a/source/compiler-core/slang-source-loc.cpp b/source/compiler-core/slang-source-loc.cpp index 75601b8159..5f1f51a381 100644 --- a/source/compiler-core/slang-source-loc.cpp +++ b/source/compiler-core/slang-source-loc.cpp @@ -597,7 +597,6 @@ void SourceFile::setContents(ISlangBlob* blob) char const* decodedContentBegin = (char const*)m_contentBlob->getBufferPointer(); const UInt decodedContentSize = m_contentBlob->getBufferSize(); - assert(decodedContentSize <= rawContentSize); char const* decodedContentEnd = decodedContentBegin + decodedContentSize; m_content = UnownedStringSlice(decodedContentBegin, decodedContentEnd);