[compiler-rt] 284934f - Make linter happy

Julian Lettner via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 4 15:14:58 PDT 2020


Author: Julian Lettner
Date: 2020-06-04T15:14:48-07:00
New Revision: 284934fbc1f564c5fb756376f43f9b57d5dfed46

URL: https://github.com/llvm/llvm-project/commit/284934fbc1f564c5fb756376f43f9b57d5dfed46
DIFF: https://github.com/llvm/llvm-project/commit/284934fbc1f564c5fb756376f43f9b57d5dfed46.diff

LOG: Make linter happy

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/tests/sanitizer_mac_test.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_mac_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_mac_test.cpp
index 5ae0679b8f62..b327ba96e223 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_mac_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_mac_test.cpp
@@ -50,7 +50,7 @@ TEST(SanitizerMac, GetDarwinKernelVersion) {
   std::string expected(buf);
 
   // Prefix match
-  ASSERT_TRUE(expected.compare(0, actual.size(), actual) == 0);
+  ASSERT_EQ(expected.compare(0, actual.size(), actual), 0);
 }
 
 }  // namespace __sanitizer


        


More information about the llvm-commits mailing list