]> granicus.if.org Git - clang/commitdiff
Fix compilation problem introduced in r308433
authorErik Verbruggen <erikjv@me.com>
Wed, 19 Jul 2017 11:15:36 +0000 (11:15 +0000)
committerErik Verbruggen <erikjv@me.com>
Wed, 19 Jul 2017 11:15:36 +0000 (11:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308438 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaCodeComplete.cpp

index f4f42e87da3d6ac521404a795d9800ad96ce9f5d..91a8c619b26c09ec7fba085030609f040d3b5931 100644 (file)
@@ -2418,7 +2418,7 @@ static std::string GetDefaultValueString(const ParmVarDecl *Param,
     // 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) != '=') {