projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2445838
)
[NFC][msan] Fix assigned-unused warning
author
Vitaly Buka
<vitalybuka@google.com>
Wed, 2 Jun 2021 07:08:46 +0000
(
00:08
-0700)
committer
Vitaly Buka
<vitalybuka@google.com>
Wed, 2 Jun 2021 07:09:02 +0000
(
00:09
-0700)
compiler-rt/lib/msan/tests/msan_test.cpp
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/msan/tests/msan_test.cpp
b/compiler-rt/lib/msan/tests/msan_test.cpp
index b382f38364277ea22ea1c0b758c5804c955194fb..314f8874ecf8428a832caaad6af5499b98383dc4 100644
(file)
--- 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);
}