diff options
Diffstat (limited to 'llvm/unittests/Support/JSONTest.cpp')
-rw-r--r-- | llvm/unittests/Support/JSONTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/JSONTest.cpp b/llvm/unittests/Support/JSONTest.cpp index 93efcf2..0357e21 100644 --- a/llvm/unittests/Support/JSONTest.cpp +++ b/llvm/unittests/Support/JSONTest.cpp @@ -196,7 +196,7 @@ TEST(JSONTest, ParseErrors) { FAIL() << "Parsed JSON >>> " << S << " <<< but wanted error: " << Msg; } else { handleAllErrors(E.takeError(), [S, Msg](const llvm::ErrorInfoBase &E) { - EXPECT_THAT(E.message(), testing::HasSubstr(Msg)) << S; + EXPECT_THAT(E.message(), testing::HasSubstr(std::string(Msg))) << S; }); } }; |