summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Verbruggen <erikjv@me.com>2017-07-19 11:15:36 +0000
committerErik Verbruggen <erikjv@me.com>2017-07-19 11:15:36 +0000
commit1bbf8120e4da5e5f32c4b6c5e29b5df8607291bf (patch)
tree07ac2951b71839f8d90f19ce8fc52597e22c08c5
parentdc8e82c94139885491141baf00ed4289cb1754d1 (diff)
Fix compilation problem introduced in r308433
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308438 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaCodeComplete.cpp2
1 files changed, 1 insertions, 1 deletions
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) != '=') {