]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix two asserts that Coverity's checker diagnosed as having side effects.
authorFlorian Krohm <florian@eich-krohm.de>
Mon, 21 Jan 2013 13:51:21 +0000 (13:51 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Mon, 21 Jan 2013 13:51:21 +0000 (13:51 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13252

callgrind/main.c

index fa29084b038dbf34c527669af0f08c13925ebe15..66c381f5e1046edc11efe41cd0b7f891c0a4c935 100644 (file)
@@ -1300,7 +1300,7 @@ IRSB* CLG_(instrument)( VgCallbackClosure* closure,
                            jmps_passed, hWordTy);
    }
    CLG_ASSERT(clgs.bb->cjmp_count == cJumps);
-   CLG_ASSERT(clgs.bb->instr_count = clgs.ii_index);
+   CLG_ASSERT(clgs.bb->instr_count == clgs.ii_index);
 
    /* Info for final exit from BB */
    {
@@ -1336,7 +1336,7 @@ IRSB* CLG_(instrument)( VgCallbackClosure* closure,
 
    if (clgs.seen_before) {
        CLG_ASSERT(clgs.bb->cost_count == update_cost_offsets(&clgs));
-       CLG_ASSERT(clgs.bb->instr_len = clgs.instr_offset);
+       CLG_ASSERT(clgs.bb->instr_len == clgs.instr_offset);
    }
    else {
        clgs.bb->cost_count = update_cost_offsets(&clgs);