[llvm] a95965d - [APFloat][unittest] Fix -Wunused-variable after D69773
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 10:33:58 PST 2020
Author: Fangrui Song
Date: 2020-01-21T10:33:48-08:00
New Revision: a95965d467c2de06625066e310a2c385ebbc40a5
URL: https://github.com/llvm/llvm-project/commit/a95965d467c2de06625066e310a2c385ebbc40a5
DIFF: https://github.com/llvm/llvm-project/commit/a95965d467c2de06625066e310a2c385ebbc40a5.diff
LOG: [APFloat][unittest] Fix -Wunused-variable after D69773
Added:
Modified:
llvm/unittests/ADT/APFloatTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/ADT/APFloatTest.cpp b/llvm/unittests/ADT/APFloatTest.cpp
index fa12b5f69f6b..c50202b7ddef 100644
--- a/llvm/unittests/ADT/APFloatTest.cpp
+++ b/llvm/unittests/ADT/APFloatTest.cpp
@@ -1021,7 +1021,6 @@ TEST(APFloatTest, fromStringSpecials) {
for (StringRef InfStr : InfStrings) {
bool Negative = InfStr.front() == '-';
- StringRef TestStr;
APFloat F(Sem);
bool HasError =
!F.convertFromString(InfStr, llvm::APFloat::rmNearestTiesToEven);
More information about the llvm-commits
mailing list