Clang: fix SEH exception

against the documentation nullptr is not working here

Change-Id: I6b5329ef97289370715faba8046724d5e42662ed
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Tim Jenssen
2017-03-23 12:11:00 +01:00
committed by Nikolai Kosjar
parent 7347bad4de
commit 637034c318

View File

@@ -83,7 +83,7 @@ void RefactoringCompilationDatabase::addFile(const std::string &directory,
const std::vector<std::string> &commandLine)
{
#if LLVM_VERSION_MAJOR >= 4
compileCommands.emplace_back(directory, fileName, commandLine, nullptr);
compileCommands.emplace_back(directory, fileName, commandLine, std::string());
#else
compileCommands.emplace_back(directory, fileName, commandLine);
#endif