Author: erikjv
Date: Wed Jul 19 04:15:36 2017
New Revision: 308438

URL: http://llvm.org/viewvc/llvm-project?rev=308438&view=rev
Log:
Fix compilation problem introduced in r308433

Modified:
    cfe/trunk/lib/Sema/SemaCodeComplete.cpp

Modified: cfe/trunk/lib/Sema/SemaCodeComplete.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaCodeComplete.cpp?rev=308438&r1=308437&r2=308438&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaCodeComplete.cpp (original)
+++ cfe/trunk/lib/Sema/SemaCodeComplete.cpp Wed Jul 19 04:15:36 2017
@@ -2418,7 +2418,7 @@ static std::string GetDefaultValueString
     // This happens if the code is incorrect (for example class is forward 
declared).
     return "";
   }
-  std::string DefValue{srcText};
+  std::string DefValue(srcText.str());
   // FIXME: remove this check if the Lexer::getSourceText value is fixed and
   // this value always has (or always does not have) '=' in front of it
   if (DefValue.at(0) != '=') {


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to