summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ADT/APIntTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/ADT/APIntTest.cpp')
-rw-r--r--llvm/unittests/ADT/APIntTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/ADT/APIntTest.cpp b/llvm/unittests/ADT/APIntTest.cpp
index 731c464bd1c..6bee61c89ad 100644
--- a/llvm/unittests/ADT/APIntTest.cpp
+++ b/llvm/unittests/ADT/APIntTest.cpp
@@ -2381,9 +2381,9 @@ TEST(APIntTest, SolveQuadraticEquationWrap) {
};
auto EquationToString = [&] (const char *X_str) {
- return Twine(A) + Twine(X_str) + Twine("^2 + ") + Twine(B) +
- Twine(X_str) + Twine(" + ") + Twine(C) + Twine(", bitwidth: ") +
- Twine(Width);
+ return (Twine(A) + Twine(X_str) + Twine("^2 + ") + Twine(B) +
+ Twine(X_str) + Twine(" + ") + Twine(C) + Twine(", bitwidth: ") +
+ Twine(Width)).str();
};
auto IsSolution = [&] (const char *X_str, int X) {
OpenPOWER on IntegriCloud