[compiler-rt] 60c0256 - [NFC][msan] Fix assigned-unused warning

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 2 00:09:33 PDT 2021


Author: Vitaly Buka
Date: 2021-06-02T00:09:02-07:00
New Revision: 60c0256ef1875e62e91b7c1126f001a586225466

URL: https://github.com/llvm/llvm-project/commit/60c0256ef1875e62e91b7c1126f001a586225466
DIFF: https://github.com/llvm/llvm-project/commit/60c0256ef1875e62e91b7c1126f001a586225466.diff

LOG: [NFC][msan] Fix assigned-unused warning

Added: 
    

Modified: 
    compiler-rt/lib/msan/tests/msan_test.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/msan/tests/msan_test.cpp b/compiler-rt/lib/msan/tests/msan_test.cpp
index b382f38364277..314f8874ecf84 100644
--- a/compiler-rt/lib/msan/tests/msan_test.cpp
+++ b/compiler-rt/lib/msan/tests/msan_test.cpp
@@ -1873,20 +1873,20 @@ TEST_STRTO_FLOAT_LOC(__wcstold_l, wchar_t, L)
 #endif  // __GLIBC__
 
 TEST(MemorySanitizer, modf) {
-  double x, y;
-  x = modf(2.1, &y);
+  double y;
+  modf(2.1, &y);
   EXPECT_NOT_POISONED(y);
 }
 
 TEST(MemorySanitizer, modff) {
-  float x, y;
-  x = modff(2.1, &y);
+  float y;
+  modff(2.1, &y);
   EXPECT_NOT_POISONED(y);
 }
 
 TEST(MemorySanitizer, modfl) {
-  long double x, y;
-  x = modfl(2.1, &y);
+  long double y;
+  modfl(2.1, &y);
   EXPECT_NOT_POISONED(y);
 }
 


        


More information about the llvm-commits mailing list