diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-08-02 20:45:06 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2018-08-02 20:45:06 +0000 |
commit | db3e54436ebdda3deb4efc297c1c9a0fd0a03222 (patch) | |
tree | 791197a695480a117372e19d41827fe3ff1ca1dc /llvm/unittests/ADT/APIntTest.cpp | |
parent | 4c2cbfe68d4090411b87b0b5daa14ce08c8cc9ea (diff) | |
download | bcm5719-llvm-db3e54436ebdda3deb4efc297c1c9a0fd0a03222.tar.gz bcm5719-llvm-db3e54436ebdda3deb4efc297c1c9a0fd0a03222.zip |
[Unittests] Fix returning string in SolveQuadraticEquationWrap
Returning a Twine caused runtime failures. Convert it to std::string
before retuning.
llvm-svn: 338768
Diffstat (limited to 'llvm/unittests/ADT/APIntTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/APIntTest.cpp | 6 |
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) { |