summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaCodeComplete.cpp
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
commit797980e0aa2fa978f464c36530e856781da6125b (patch)
tree0b8d7c1f918b5e6ff9b5524e1a13d49004c81f44 /clang/lib/Sema/SemaCodeComplete.cpp
parentbb7d22a31a8b989332ce60611925aba072e2ecd0 (diff)
downloadbcm5719-llvm-797980e0aa2fa978f464c36530e856781da6125b.tar.gz
bcm5719-llvm-797980e0aa2fa978f464c36530e856781da6125b.zip
Fix compilation problem introduced in r308433
llvm-svn: 308438
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
-rw-r--r--clang/lib/Sema/SemaCodeComplete.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp
index f4f42e87da3..91a8c619b26 100644
--- a/clang/lib/Sema/SemaCodeComplete.cpp
+++ b/clang/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) != '=') {
OpenPOWER on IntegriCloud