]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix some warnings reported by PVS studio (see bug 379502)
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 20 May 2017 17:00:39 +0000 (17:00 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 20 May 2017 17:00:39 +0000 (17:00 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@3378

VEX/priv/host_arm64_isel.c
VEX/priv/host_arm_isel.c
VEX/priv/host_mips_isel.c

index cc797eb464d7438d28c1f49f6ae5fcdb158d89d5..50f9205d1d5d22c9ff949c9a05f90eeb64362c8b 100644 (file)
@@ -732,7 +732,7 @@ Bool doHelperCall ( /*OUT*/UInt*   stackAdjustAfterCall,
    /* Do final checks, set the return values, and generate the call
       instruction proper. */
    vassert(nGSPTRs == 0 || nGSPTRs == 1);
-   vassert(nVECRETs == (retTy == Ity_V128 || retTy == Ity_V256) ? 1 : 0);
+   vassert(nVECRETs == ((retTy == Ity_V128 || retTy == Ity_V256) ? 1 : 0));
    vassert(*stackAdjustAfterCall == 0);
    vassert(is_RetLoc_INVALID(*retloc));
    switch (retTy) {
index 2178ae45a35e5b202ba37e01a19fc0d841243387..3db44f4952a3857f92d8a9c606439bde1680a8b2 100644 (file)
@@ -792,7 +792,7 @@ Bool doHelperCall ( /*OUT*/UInt*   stackAdjustAfterCall,
    /* Do final checks, set the return values, and generate the call
       instruction proper. */
    vassert(nGSPTRs == 0 || nGSPTRs == 1);
-   vassert(nVECRETs == (retTy == Ity_V128 || retTy == Ity_V256) ? 1 : 0);
+   vassert(nVECRETs == ((retTy == Ity_V128 || retTy == Ity_V256) ? 1 : 0));
    vassert(*stackAdjustAfterCall == 0);
    vassert(is_RetLoc_INVALID(*retloc));
    switch (retTy) {
index 88f37080071ad2181a0b758f44d9b5b1b3a43deb..0dff8a67e14645c6cfa6c1359c3a4d0fec514e98 100644 (file)
@@ -605,7 +605,7 @@ static void doHelperCall(/*OUT*/UInt*   stackAdjustAfterCall,
    /* Do final checks, set the return values, and generate the call
       instruction proper. */
    vassert(nGSPTRs == 0 || nGSPTRs == 1);
-   vassert(nVECRETs == (retTy == Ity_V128 || retTy == Ity_V256) ? 1 : 0);
+   vassert(nVECRETs == ((retTy == Ity_V128 || retTy == Ity_V256) ? 1 : 0));
    vassert(*stackAdjustAfterCall == 0);
    vassert(is_RetLoc_INVALID(*retloc));
    switch (retTy) {