mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-16 13:08:42 +00:00
[clangd] Work around gcc bug after 8f237f9b0
This commit is contained in:
parent
2679d8dc7e
commit
43c63349f5
@ -64,7 +64,7 @@ llvm::Expected<SelectionRange> getSemanticRanges(ParsedAST &AST, Position Pos) {
|
||||
// Return an empty range at the point.
|
||||
SelectionRange Empty;
|
||||
Empty.range.start = Empty.range.end = Pos;
|
||||
return Empty;
|
||||
return std::move(Empty);
|
||||
}
|
||||
|
||||
// Convert to the LSP linked-list representation.
|
||||
@ -78,7 +78,7 @@ llvm::Expected<SelectionRange> getSemanticRanges(ParsedAST &AST, Position Pos) {
|
||||
Tail->range = std::move(Range);
|
||||
}
|
||||
|
||||
return Head;
|
||||
return std::move(Head);
|
||||
}
|
||||
|
||||
} // namespace clangd
|
||||
|
Loading…
x
Reference in New Issue
Block a user