[llvm] r298019 - SmallString doesn't have implicit conversion from const char*.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 16 17:28:24 PDT 2017


Author: zturner
Date: Thu Mar 16 19:28:23 2017
New Revision: 298019

URL: http://llvm.org/viewvc/llvm-project?rev=298019&view=rev
Log:
SmallString doesn't have implicit conversion from const char*.

Modified:
    llvm/trunk/unittests/Support/Path.cpp

Modified: llvm/trunk/unittests/Support/Path.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/Path.cpp?rev=298019&r1=298018&r2=298019&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/Path.cpp (original)
+++ llvm/trunk/unittests/Support/Path.cpp Thu Mar 16 19:28:23 2017
@@ -1064,8 +1064,8 @@ TEST(Support, NormalizePath) {
   Tests.emplace_back("a\\", "a\\", "a/");
 
   for (auto &T : Tests) {
-    SmallString<64> Win = std::get<0>(T);
-    SmallString<64> Posix = Win;
+    SmallString<64> Win(std::get<0>(T));
+    SmallString<64> Posix(Win);
     path::native(Win, path::Style::windows);
     path::native(Posix, path::Style::posix);
     EXPECT_EQ(std::get<1>(T), Win);




More information about the llvm-commits mailing list