projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb03892
)
[clangd] Fix yet-another gratuitous llvm::Error crash
author
Sam McCall
<sam.mccall@gmail.com>
Sun, 3 May 2020 20:13:49 +0000
(22:13 +0200)
committer
Sam McCall
<sam.mccall@gmail.com>
Sun, 3 May 2020 20:13:58 +0000
(22:13 +0200)
clang-tools-extra/clangd/SourceCode.cpp
patch
|
blob
|
history
diff --git
a/clang-tools-extra/clangd/SourceCode.cpp
b/clang-tools-extra/clangd/SourceCode.cpp
index
d50968b
..
0d08bf8
100644
(file)
--- a/
clang-tools-extra/clangd/SourceCode.cpp
+++ b/
clang-tools-extra/clangd/SourceCode.cpp
@@
-564,7
+564,7
@@
format::FormatStyle getFormatStyleForFile(llvm::StringRef File,
if (!Style) {
log("getStyle() failed for file {0}: {1}. Fallback is LLVM style.", File,
Style.takeError());
-
Style =
format::getLLVMStyle();
+
return
format::getLLVMStyle();
}
return *Style;
}