rose: remove unnecessary engine blob size check

This commit is contained in:
Justin Viiret 2017-03-02 09:51:19 +11:00 committed by Matthew Barr
parent 2ec3019e04
commit 09d19c7c57

View 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));