]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
rose: remove unnecessary engine blob size check
authorJustin Viiret <justin.viiret@intel.com>
Wed, 1 Mar 2017 22:51:19 +0000 (09:51 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 26 Apr 2017 05:11:10 +0000 (15:11 +1000)
src/rose/rose_build_bytecode.cpp

index 222e692672158440dfdf7d19f6771de9765664d8..02107b9db5bd271bd9260dae341f637c86afc64e 100644 (file)
@@ -5492,8 +5492,6 @@ aligned_unique_ptr<RoseEngine> RoseBuildImpl::buildFinalEngine(u32 minWidth) {
         currOffset = sizeof(RoseEngine);
     }
 
-    UNUSED const size_t engineBlobSize = bc.engine_blob.size(); // test later
-
     currOffset = ROUNDUP_CL(currOffset);
     DEBUG_PRINTF("currOffset %u\n", currOffset);
 
@@ -5572,10 +5570,6 @@ aligned_unique_ptr<RoseEngine> RoseBuildImpl::buildFinalEngine(u32 minWidth) {
     // Copy in the engine blob.
     bc.engine_blob.write_bytes(engine.get());
 
-    // Safety check: we shouldn't have written anything to the engine blob
-    // after we copied it into the engine bytecode.
-    assert(bc.engine_blob.size() == engineBlobSize);
-
     // Add a small write engine if appropriate.
     engine = addSmallWriteEngine(*this, move(engine));