From: Erik Verbruggen Date: Wed, 19 Jul 2017 11:15:36 +0000 (+0000) Subject: Fix compilation problem introduced in r308433 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bbf8120e4da5e5f32c4b6c5e29b5df8607291bf;p=clang Fix compilation problem introduced in r308433 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308438 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaCodeComplete.cpp b/lib/Sema/SemaCodeComplete.cpp index f4f42e87da..91a8c619b2 100644 --- a/lib/Sema/SemaCodeComplete.cpp +++ b/lib/Sema/SemaCodeComplete.cpp @@ -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) != '=') {