We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04bbe1b commit cb9ea31Copy full SHA for cb9ea31
clang/include/clang/CAS/IncludeTree.h
@@ -378,14 +378,14 @@ class IncludeTree::SpuriousImport
378
Expected<ModuleImport> getModuleImport() {
379
std::optional<ObjectProxy> Proxy;
380
if (llvm::Error Err = getCAS().getProxy(getReference(0)).moveInto(Proxy))
381
- return Err;
+ return std::move(Err);
382
return ModuleImport(*Proxy);
383
}
384
385
Expected<IncludeTree> getIncludeTree() {
386
387
if (llvm::Error Err = getCAS().getProxy(getReference(1)).moveInto(Proxy))
388
389
return IncludeTree(*Proxy);
390
391
0 commit comments