r308438 - Fix compilation problem introduced in r308433
Erik Verbruggen via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 19 04:15:36 PDT 2017
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) != '=') {
More information about the cfe-commits
mailing list