Fix assertion with side-effects in libsnark/common/profiling.cpp

This commit is contained in:
Jon Layton 2018-10-17 02:41:07 -05:00
parent 45922222ac
commit 6d40dee1d5
1 changed files with 2 additions and 1 deletions

View File

@ -282,7 +282,8 @@ void leave_block(const std::string &msg, const bool indent)
}
#ifndef MULTICORE
assert(*(--block_names.end()) == msg);
--block_names.end();
assert(*(block_names.end()) == msg);
#endif
block_names.pop_back();