1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

[Unittests] Fix returning string in SolveQuadraticEquationWrap

Returning a Twine caused runtime failures. Convert it to std::string
before retuning.

llvm-svn: 338768
This commit is contained in:
Krzysztof Parzyszek 2018-08-02 20:45:06 +00:00
parent 48854aaf43
commit 67370a2e75

View File

@ -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) {