Skip to content

Commit

Permalink
Fix msan/tests/msan_test.cpp due to -Wbitwise-instead-of-logical
Browse files Browse the repository at this point in the history
The LE Power sanitizer bot fails when testing standalone compiler-rt due to
an MSAN test warning introduced by -Wbitwise-instead-of-logical. As this option
along with -Werror is enabled on the bot, the test failure occurs.
This patch updates msan_test.cpp to fix the warning introduced by the
-Wbitwise-instead-of-logical.
  • Loading branch information
amy-kwan committed Oct 4, 2021
1 parent b4218a1 commit 83539d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/msan/tests/msan_test.cpp
Expand Up @@ -413,7 +413,7 @@ TEST(MemorySanitizer, AndOr) {
EXPECT_POISONED(*p | 0x0000ffff);
EXPECT_POISONED(*p | 0xffff0000);

EXPECT_POISONED(*GetPoisoned<bool>() & *GetPoisoned<bool>());
EXPECT_POISONED((int)*GetPoisoned<bool>() & (int)*GetPoisoned<bool>());
}

template<class T>
Expand Down

0 comments on commit 83539d7

Please sign in to comment.