[clang-tools-extra] 4f4a8ae - [clangd] Fix build for gcc 7.4
Kadir Cetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 4 03:05:17 PDT 2020
Author: Kadir Cetinkaya
Date: 2020-06-04T12:02:49+02:00
New Revision: 4f4a8ae72e95f2c7fa5e4ca56dd6b1a83a304680
URL: https://github.com/llvm/llvm-project/commit/4f4a8ae72e95f2c7fa5e4ca56dd6b1a83a304680
DIFF: https://github.com/llvm/llvm-project/commit/4f4a8ae72e95f2c7fa5e4ca56dd6b1a83a304680.diff
LOG: [clangd] Fix build for gcc 7.4
Added:
Modified:
clang-tools-extra/clangd/CodeComplete.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/CodeComplete.cpp b/clang-tools-extra/clangd/CodeComplete.cpp
index d2ee41f36cf4..bc06199eb38f 100644
--- a/clang-tools-extra/clangd/CodeComplete.cpp
+++ b/clang-tools-extra/clangd/CodeComplete.cpp
@@ -1031,7 +1031,7 @@ struct SemaCompleteInput {
PathRef FileName;
const tooling::CompileCommand &Command;
const PreambleData &Preamble;
- llvm::Optional<const PreamblePatch> Patch;
+ const llvm::Optional<PreamblePatch> Patch;
llvm::StringRef Contents;
size_t Offset;
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS;
More information about the cfe-commits
mailing list