reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Support/Error.h
 1138   if (auto EC = EO.getError())
include/llvm/Support/ErrorOr.h
  185       new (getErrorStorage()) std::error_code(Other.getError());
  217       new (getErrorStorage()) std::error_code(Other.getError());
  273   return Err.getError() == Code;
include/llvm/Support/VirtualFileSystem.h
  113       return Status.getError();
lib/AsmParser/Parser.cpp
   60   if (std::error_code EC = FileOrErr.getError()) {
   90   if (std::error_code EC = FileOrErr.getError()) {
  138   if (std::error_code EC = FileOrErr.getError()) {
lib/BinaryFormat/Magic.cpp
  227     return FileOrError.getError();
lib/Bitcode/Reader/BitReader.cpp
   66   if (ModuleOrErr.getError()) {
  115   if (ModuleOrErr.getError()) {
lib/Bitcode/Reader/BitcodeReader.cpp
 6726     return errorCodeToError(FileOrErr.getError());
lib/CodeGen/MIRParser/MIRParser.cpp
  932   if (std::error_code EC = FileOrErr.getError()) {
lib/DebugInfo/GSYM/GsymReader.cpp
   39   auto Err = BuffOrErr.getError();
lib/DebugInfo/PDB/PDB.cpp
   31       return errorCodeToError(ErrorOrBuffer.getError());
lib/DebugInfo/Symbolize/Symbolize.cpp
  420   if (std::error_code EC = InfoOrErr.getError())
lib/FuzzMutate/FuzzerCLI.cpp
  157     if (std::error_code EC = BufOrErr.getError()) {
lib/IR/Core.cpp
 4003   if (std::error_code EC = MBOrErr.getError()) {
 4014   if (std::error_code EC = MBOrErr.getError()) {
lib/IRReader/IRReader.cpp
   58   if (std::error_code EC = FileOrErr.getError()) {
  101   if (std::error_code EC = FileOrErr.getError()) {
lib/LTO/Caching.cpp
   55       EC = MBOrErr.getError();
   97                              MBOrErr.getError().message() + "\n");
lib/LTO/LTOCodeGenerator.cpp
  305   if (std::error_code EC = BufferOrErr.getError()) {
lib/LTO/LTOModule.cpp
  113   if (std::error_code EC = BufferOrErr.getError()) {
  135   if (std::error_code EC = BufferOrErr.getError()) {
  197   if (std::error_code EC = MOrErr.getError())
lib/LTO/ThinLTOCodeGenerator.cpp
 1114             if (auto EC = ReloadedBufferOrErr.getError()) {
lib/Object/Archive.cpp
  450   if (std::error_code EC = Buf.getError())
lib/Object/ArchiveWriter.cpp
   97     return errorCodeToError(MemberBufferOrErr.getError());
lib/Object/Binary.cpp
  100   if (std::error_code EC = FileOrErr.getError())
lib/Object/ObjectFile.cpp
  171   if (std::error_code EC = FileOrErr.getError())
lib/ProfileData/Coverage/CoverageMapping.cpp
  318     if (std::error_code EC = CovMappingBufOrErr.getError())
lib/ProfileData/GCOV.cpp
  623     if (std::error_code EC = BufferOrErr.getError()) {
lib/ProfileData/InstrProfReader.cpp
   44   if (std::error_code EC = BufferOrErr.getError())
lib/ProfileData/SampleProfReader.cpp
  342   if (std::error_code EC = Idx.getError())
  351   if (std::error_code EC = Idx.getError())
  359   if (std::error_code EC = Idx.getError())
  368   if (std::error_code EC = NumSamples.getError())
  374   if (std::error_code EC = NumRecords.getError())
  379     if (std::error_code EC = LineOffset.getError())
  387     if (std::error_code EC = Discriminator.getError())
  391     if (std::error_code EC = NumSamples.getError())
  395     if (std::error_code EC = NumCalls.getError())
  400       if (std::error_code EC = CalledFunction.getError())
  404       if (std::error_code EC = CalledFunctionSamples.getError())
  416   if (std::error_code EC = NumCallsites.getError())
  421     if (std::error_code EC = LineOffset.getError())
  425     if (std::error_code EC = Discriminator.getError())
  429     if (std::error_code EC = FName.getError())
  446   if (std::error_code EC = NumHeadSamples.getError())
  450   if (std::error_code EC = FName.getError())
  514   if (std::error_code EC = Size.getError())
  520     if (std::error_code EC = FName.getError())
  524     if (std::error_code EC = Offset.getError())
  581   if (std::error_code EC = DecompressSize.getError())
  586   if (std::error_code EC = CompressSize.getError())
  695   if (std::error_code EC = Size.getError())
  700     if (std::error_code EC = Name.getError())
  710   if (std::error_code EC = Size.getError())
  715     if (std::error_code EC = FID.getError())
  725   if (std::error_code EC = Type.getError())
  730   if (std::error_code EC = Flags.getError())
  735   if (std::error_code EC = Offset.getError())
  740   if (std::error_code EC = Size.getError())
  750   if (std::error_code EC = EntryNum.getError())
  816   if (std::error_code EC = Magic.getError())
  823   if (std::error_code EC = Version.getError())
  855   if (std::error_code EC = TableOffset.getError())
  865   if (std::error_code EC = Size.getError())
  871     if (std::error_code EC = FName.getError())
  875     if (std::error_code EC = Offset.getError())
  895   if (std::error_code EC = Cutoff.getError())
  899   if (std::error_code EC = MinBlockCount.getError())
  903   if (std::error_code EC = NumBlocks.getError())
  912   if (std::error_code EC = TotalCount.getError())
  916   if (std::error_code EC = MaxBlockCount.getError())
  920   if (std::error_code EC = MaxFunctionCount.getError())
  924   if (std::error_code EC = NumBlocks.getError())
  928   if (std::error_code EC = NumFunctions.getError())
  932   if (std::error_code EC = NumSummaryEntries.getError())
 1245   if (std::error_code EC = BufferOrErr.getError())
 1269   if (std::error_code EC = BufferOrError.getError())
 1289   if (std::error_code EC = BufferOrError.getError())
 1352     if (std::error_code EC = ReaderOrErr.getError()) {
lib/Remarks/BitstreamRemarkParser.cpp
  427   if (std::error_code EC = BufferOrErr.getError())
lib/Remarks/YAMLRemarkParser.cpp
  152       if (std::error_code EC = BufferOrErr.getError())
lib/Support/FileUtilities.cpp
  186   if (std::error_code EC = F1OrErr.getError()) {
  194   if (std::error_code EC = F2OrErr.getError()) {
lib/Support/Host.cpp
   59   if (std::error_code EC = Text.getError()) {
 1238   if (std::error_code EC = Text.getError()) {
lib/Support/SpecialCaseList.cpp
  103     if (std::error_code EC = FileOrErr.getError()) {
lib/Support/Unix/Path.inc
 1042       return st.getError();
lib/Support/VirtualFileSystem.cpp
  119     return F.getError();
  130     return WorkingDir.getError();
  404     if (Status || Status.getError() != llvm::errc::no_such_file_or_directory)
  415     if (Result || Result.getError() != llvm::errc::no_such_file_or_directory)
  866   return Node.getError();
  873     return Node.getError();
  938     EC = Node.getError();
 1080     EC = E.getError();
 1087     EC = S.getError();
 1649     if (Result || Result.getError() != llvm::errc::no_such_file_or_directory)
 1695     if (Result || Result.getError() != llvm::errc::no_such_file_or_directory)
 1730         Result.getError() == llvm::errc::no_such_file_or_directory) {
 1733     return Result.getError();
 1768         E.getError() == llvm::errc::no_such_file_or_directory) {
 1771     return E.getError();
 1784     return ExternalStatus.getError();
 1799         Result.getError() == llvm::errc::no_such_file_or_directory) {
 1802     return Result.getError();
lib/TableGen/Main.cpp
   89   if (std::error_code EC = FileOrErr.getError())
lib/Target/X86/X86InsertPrefetch.cpp
  163   if (std::error_code EC = ReaderOrErr.getError()) {
lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
   60   if (std::error_code EC = MB.getError()) {
lib/ToolDrivers/llvm-lib/LibDriver.cpp
  120     fatalOpenError(errorCodeToError(MaybeBuf.getError()), Arg->getValue());
  344     fatalOpenError(errorCodeToError(MOrErr.getError()), Path);
lib/Transforms/IPO/BlockExtractor.cpp
  109   if (ErrOrBuf.getError())
lib/Transforms/IPO/SampleProfile.cpp
 1682   if (std::error_code EC = ReaderOrErr.getError()) {
lib/Transforms/Utils/SymbolRewriter.cpp
  257                        Mapping.getError().message());
tools/bugpoint/OptimizerDriver.cpp
  172       errs() << Path.getError().message() << "\n";
  188       errs() << Path.getError().message() << "\n";
tools/bugpoint/ToolRunner.cpp
  228     Message = LLIPath.getError().message() + "\n";
  391               "' in PATH: " + Path.getError().message() + "\n";
  515     Message = LLCPath.getError().message() + "\n";
  599     Message = LLIPath.getError().message() + "\n";
  848               CCPath.getError().message() + "\n";
  857                 Path.getError().message() + "\n";
tools/clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h
   65       return MaybeStat.getError();
tools/clang/lib/Basic/FileManager.cpp
  145     return llvm::errorCodeToError(SeenDirInsertResult.first->second.getError());
  212           SeenFileInsertResult.first->second.getError());
  239       NamedFileEnt.second = DirInfoOrErr.getError();
  243     return llvm::errorCodeToError(DirInfoOrErr.getError());
  520     return S.getError();
tools/clang/lib/Basic/FileSystemStatCache.cpp
   49       RetCode = StatusOrErr.getError();
   65       RetCode = OwnedFile.getError();
   78         RetCode = StatusOrErr.getError();
tools/clang/lib/Basic/SourceManager.cpp
  184                                 BufferOrError.getError().message());
  187           << ContentsEntry->getName() << BufferOrError.getError().message();
tools/clang/lib/CodeGen/BackendUtil.cpp
 1405              << "': " << MBOrErr.getError().message() << "\n";
tools/clang/lib/CodeGen/CGCUDANV.cpp
  520     if (std::error_code EC = CudaGpuBinaryOrErr.getError()) {
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 4233   if (auto EC = Buf.getError()) {
 4243   if (auto EC = ME.getError()) {
tools/clang/lib/CodeGen/CodeGenAction.cpp
  907             << F.Filename << BCBuf.getError().message();
tools/clang/lib/Format/Format.cpp
 2633       if (std::error_code EC = Text.getError())
tools/clang/lib/Frontend/ASTUnit.cpp
  741     *ErrorStr = Buffer.getError().message();
 1389       switch (static_cast<BuildPreambleError>(NewPreamble.getError().value())) {
tools/clang/lib/Frontend/CompilerInstance.cpp
  869                                                  << MB.getError().message();
  879     if (std::error_code EC = SBOrErr.getError()) {
tools/clang/lib/Frontend/SerializedDiagnosticReader.cpp
  176       Res.getError();
  228       Res.getError();
tools/clang/lib/Serialization/ASTReader.cpp
 4993         << ASTFileName << Buffer.getError().message();
tools/clang/lib/Serialization/GlobalModuleIndex.cpp
  262                           llvm::errorCodeToError(BufferOrErr.getError()));
  535     return llvm::createStringError(Buffer.getError(),
tools/clang/lib/Serialization/ModuleManager.cpp
  192       ErrorStr = Buf.getError().message();
tools/clang/lib/StaticAnalyzer/Checkers/Yaml.h
   36   if (std::error_code ec = Buffer.getError()) {
tools/clang/lib/Tooling/CompilationDatabase.cpp
  367   if (std::error_code Result = File.getError()) {
tools/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
   24     return MaybeFile.getError();
   27     return Stat.getError();
   33     return MaybeBuffer.getError();
  179           return MaybeStatus.getError();
  181           CacheEntry = CachedFileSystemEntry(MaybeStatus.getError());
  205     return Result.getError();
  244     return Contents.getError();
  266     return Result.getError();
tools/clang/lib/Tooling/JSONCompilationDatabase.cpp
  202   if (std::error_code Result = DatabaseBuffer.getError()) {
tools/clang/lib/Tooling/Tooling.cpp
  486                    << CWD.getError().message() << "\n";
tools/clang/tools/clang-format/ClangFormat.cpp
  380   if (std::error_code EC = CodeOrErr.getError()) {
  486     if (std::error_code EC = CodeOrErr.getError()) {
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
  472       return createStringError(Objcopy.getError(),
  679     if (std::error_code EC = CodeOrErr.getError())
  718   if (std::error_code EC = CodeOrErr.getError())
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
  343       reportError(createFileError(File, BufOrErr.getError()));
tools/clang/tools/clang-rename/ClangRename.cpp
  109              << Buffer.getError().message() << "\n";
tools/clang/tools/driver/cc1as_main.cpp
  339   if (std::error_code EC = Buffer.getError()) {
tools/clang/tools/driver/cc1gen_reproducer_main.cpp
  167                  << Buffer.getError().message() << "\n";
tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
   62     if (std::error_code BufferError = Out.getError()) {
  106     if (std::error_code BufferError = Out.getError()) {
  240     return errorCodeToError(Buffer.getError());
tools/clang/tools/extra/clang-change-namespace/tool/ClangChangeNamespace.cpp
   90     return File.getError();
  110                  << WhiteListPatterns.getError().message() << "\n";
tools/clang/tools/extra/clang-include-fixer/FuzzySymbolIndex.cpp
  136     return llvm::errorCodeToError(Buffer.getError());
tools/clang/tools/extra/clang-include-fixer/YamlSymbolIndex.cpp
   28     return Buffer.getError();
tools/clang/tools/extra/clang-include-fixer/tool/ClangIncludeFixer.cpp
  209         llvm::errs() << "Couldn't find YAML db: " << DB.getError().message()
  280     if (std::error_code EC = CodeOrErr.getError()) {
  415              << Buffer.getError().message() + "\n";
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp
  194                        << Buffer.getError().message() << "\n";
tools/clang/tools/extra/clang-tidy/ClangTidyOptions.cpp
  296     if (std::error_code EC = Text.getError()) {
  309       if (ParsedOptions.getError())
  311                      << ParsedOptions.getError().message() << "\n";
tools/clang/tools/extra/clang-tidy/tool/ClangTidyMain.cpp
  299                    << ParsedConfig.getError().message() << "\n";
  314                  << OverlayFile << "': " << Buffer.getError().message()
tools/clang/tools/extra/clangd/ParsedAST.cpp
  314   if (Opts.SuggestMissingIncludes && Index && !BuildDir.getError()) {
tools/clang/tools/extra/clangd/QueryDriverDatabase.cpp
  137          StdErrPath, BufOrError.getError().message());
tools/clang/tools/extra/clangd/index/Background.cpp
  128          LS.AbsolutePath, Buf.getError().message());
  351     return llvm::errorCodeToError(Buf.getError());
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp
  149   if (std::error_code EC = listBuffer.getError())
  222   if (std::error_code EC = listBuffer.getError())
  267     return ModuleMapEntryOrErr.getError();
tools/clang/unittests/Basic/FileManagerTest.cpp
  223   ASSERT_EQ(file.getError(), std::errc::no_such_file_or_directory);
  227   ASSERT_EQ(readingDirAsFile.getError(), std::errc::is_a_directory);
  231   ASSERT_EQ(readingFileAsDir.getError(), std::errc::not_a_directory);
tools/dsymutil/BinaryHolder.cpp
   50   if (auto Err = ErrOrBuff.getError())
   89   if (auto Err = ErrOrBuff.getError())
tools/dsymutil/DebugMap.cpp
  130   if (auto Err = ErrOrFile.getError())
tools/dsymutil/MachOUtils.cpp
   62     WithColor::error() << "lipo: " << Path.getError().message() << "\n";
tools/dsymutil/SymbolMap.cpp
  119   if (auto EC = ErrOrMemBuffer.getError()) {
tools/dsymutil/dsymutil.cpp
  504     if (auto EC = DebugMapPtrsOrErr.getError()) {
tools/gold/gold-plugin.cpp
  518     if (std::error_code EC = BufferOrErr.getError()) {
tools/lld/COFF/Driver.cpp
  142       return MBErrPair{nullptr, mbOrErr.getError()};
tools/lld/COFF/DriverUtils.cpp
   58     if (auto ec = exeOrErr.getError())
tools/lld/ELF/InputFiles.cpp
  112   if (auto ec = mbOrErr.getError()) {
tools/lld/include/lld/Common/ErrorHandler.h
  131   if (auto ec = e.getError())
  144   if (auto ec = e.getError())
tools/lld/lib/Driver/DarwinLdDriver.cpp
  121   if (std::error_code ec = mbOrErr.getError())
  125   if (std::error_code ec = fileOrErr.getError())
  173   if (std::error_code ec = mb.getError())
  203   if (std::error_code ec = mb.getError())
  262   if (std::error_code ec = mb.getError())
tools/lld/lib/ReaderWriter/FileArchive.cpp
  155     if (std::error_code ec = fileOrErr.getError())
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
  663   if (std::error_code ec = mbOrErr.getError())
  678   if (mbOrErr.getError())
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp
  148   if (b.getError())
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp
   33   std::error_code ec = mbOrErr.getError();
tools/lld/wasm/InputFiles.cpp
   49   if (auto ec = mbOrErr.getError()) {
tools/lldb/include/lldb/Utility/Reproducer.h
  310       return llvm::errorCodeToError(buffer.getError());
tools/lldb/source/Commands/CommandObjectReproducer.cpp
  256         SetError(result, errorCodeToError(buffer.getError()));
  315         if (auto err = command_buffer.getError()) {
  328       if (auto err = error_or_file.getError()) {
tools/lldb/source/Host/common/FileSystem.cpp
   64     return llvm::errorCodeToError(buffer.getError());
  148     ec = status.getError();
  430     return errorCodeToError(path.getError());
  453     if (E.getError() == llvm::errc::no_such_file_or_directory) {
  456     return E.getError();
tools/lldb/source/Host/linux/Support.cpp
   21     LLDB_LOG(log, "Failed to open {0}: {1}", File, Ret.getError().message());
   31     LLDB_LOG(log, "Failed to open {0}: {1}", File, Ret.getError().message());
   41     LLDB_LOG(log, "Failed to open {0}: {1}", File, Ret.getError().message());
tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
  275             return Status(MD5.getError());
tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
 1303     return BufferOrError.getError();
tools/lldb/source/Plugins/Process/Linux/ProcessorTrace.cpp
   84     return ret.getError();
  181     return BufferOrError.getError();
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp
  182   if (auto err = error_or_file.getError())
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
 2767       return llvm::errorCodeToError(buffer_or_error.getError());
tools/lldb/source/Target/Platform.cpp
  779     return Status(Value.getError());
tools/lldb/source/Utility/Reproducer.cpp
  211   if (auto err = error_or_file.getError())
  313   if (auto err = error_or_file.getError())
tools/lldb/source/Utility/ReproducerInstrumentation.cpp
   39   if (auto err = error_or_file.getError())
tools/lldb/source/Utility/StructuredData.cpp
   45                                     buffer_or_error.getError().message());
tools/lldb/tools/lldb-test/lldb-test.cpp
  301                       MB.getError().message());
tools/lldb/unittests/Host/FileSystemTest.cpp
   61     return S.getError();
tools/lldb/unittests/TestingSupport/TestUtilities.cpp
   54     return llvm::errorCodeToError(BufferOrError.getError());
tools/llvm-ar/llvm-ar.cpp
  261   failIfError(BufOrErr.getError(), "could not open library " + Library);
  965   std::error_code EC = Buf.getError();
  999   failIfError(Buf.getError());
tools/llvm-cov/CodeCoverage.cpp
  220         warning(Status.getError().message(), F->path());
  243   if (auto EC = Buffer.getError()) {
  492     error(OutputPath, BufOrError.getError().message());
  697               DemanglerPathOrErr.getError().message());
tools/llvm-cov/gcov.cpp
   48   if (std::error_code EC = GCNO_Buff.getError()) {
   60   if (std::error_code EC = GCDA_Buff.getError()) {
tools/llvm-cxxmap/llvm-cxxmap.cpp
  137     exitWithErrorCode(OldSymbolBufOrError.getError(), OldSymbolFile);
  141     exitWithErrorCode(NewSymbolBufOrError.getError(), NewSymbolFile);
  145     exitWithErrorCode(RemappingBufOrError.getError(), RemappingFile);
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
  526   error(Filename, BuffOrErr.getError());
tools/llvm-elfabi/llvm-elfabi.cpp
   78     return createStringError(BufOrError.getError(), "Could not open `%s`",
tools/llvm-exegesis/lib/SnippetFile.cpp
  123   if (std::error_code EC = BufferPtr.getError()) {
tools/llvm-ifs/llvm-ifs.cpp
  207     return createStringError(BufOrError.getError(), "Could not open `%s`",
tools/llvm-lto/llvm-lto.cpp
  302   error(V.getError(), Prefix);
tools/llvm-lto2/llvm-lto2.cpp
  163   check(E.getError(), Msg);
tools/llvm-mc/llvm-mc.cpp
  335   if (std::error_code EC = BufferPtr.getError()) {
tools/llvm-mca/llvm-mca.cpp
  318   if (std::error_code EC = BufferPtr.getError()) {
  404   if (std::error_code EC = OF.getError()) {
tools/llvm-mt/llvm-mt.cpp
  142       reportError(File, ManifestOrErr.getError());
tools/llvm-nm/llvm-nm.cpp
 1779   if (error(BufferOrErr.getError(), Filename))
tools/llvm-objcopy/COFF/COFFObjcopy.cpp
   47     error("'" + File + "': " + LinkTargetOrErr.getError().message());
  181       return createFileError(FileName, errorCodeToError(BufOrErr.getError()));
tools/llvm-objcopy/CopyConfig.cpp
  271     return createFileError(Filename, BufOrErr.getError());
  329     return createFileError(Filename, BufOrErr.getError());
  503       return createFileError(Config.AddGnuDebugLink, DebugOrErr.getError());
  717             EAddr.getError(), "bad entry point address: '%s'", Arg->getValue());
  723         return createStringError(EIncr.getError(),
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  698       return createFileError(File, errorCodeToError(BufOrErr.getError()));
tools/llvm-objcopy/llvm-objcopy.cpp
  281       return createFileError(Config.InputFilename, BufOrErr.getError());
tools/llvm-objdump/MachODump.cpp
 7361       if (std::error_code EC = BufOrErr.getError()) {
tools/llvm-opt-report/OptReport.cpp
  151   if (std::error_code EC = Buf.getError()) {
  264     if (std::error_code EC = Buf.getError()) {
tools/llvm-pdbutil/InputFile.cpp
  294         formatv("File {0} could not be opened", Path), Result.getError());
tools/llvm-pdbutil/llvm-pdbutil.cpp
  750   if (ErrorOrBuffer.getError()) {
  751     ExitOnErr(createFileError(Path, errorCodeToError(ErrorOrBuffer.getError())));
tools/llvm-profdata/llvm-profdata.cpp
  148       exitWithErrorCode(BufOrError.getError(), InputFile);
  425     exitWithErrorCode(BufOrError.getError(), InputFile);
  479     if (std::error_code EC = ReaderOrErr.getError()) {
  520   if (std::error_code EC = WriterOrErr.getError())
 1023   if (std::error_code EC = ReaderOrErr.getError())
tools/llvm-rc/llvm-rc.cpp
  114                "': " + File.getError().message());
tools/llvm-rtdyld/llvm-rtdyld.cpp
  377     if (std::error_code EC = InputBuffer.getError())
  513       if (std::error_code EC = InputBuffer.getError())
  586     if (std::error_code EC = CheckerFileBuf.getError())
  904     if (std::error_code EC = InputBuffer.getError())
tools/llvm-strings/llvm-strings.cpp
  112     if (std::error_code EC = Buffer.getError())
tools/llvm-undname/llvm-undname.cpp
   85     if (std::error_code EC = FileOrErr.getError()) {
tools/obj2yaml/wasm2yaml.cpp
  380   if (std::error_code EC = YAMLOrErr.getError())
tools/polly/lib/Exchange/JSONExporter.cpp
  703   std::error_code ec = result.getError();
tools/sancov/sancov.cpp
  192   failIfError(E.getError());
  234     return BufOrErr.getError();
  845     errs() << "Warning: " << BufOrErr.getError().message() << "("
  846            << BufOrErr.getError().value()
  848     return BufOrErr.getError();
tools/sanstats/sanstats.cpp
  131            << MBOrErr.getError().message() << '\n';
tools/verify-uselistorder/verify-uselistorder.cpp
  154     errs() << "verify-uselistorder: error: " << BufferOr.getError().message()
unittests/ProfileData/SampleProfTest.cpp
   49     ASSERT_TRUE(NoError(WriterOrErr.getError()));
   56     ASSERT_TRUE(NoError(ReaderOrErr.getError()));
  184     ASSERT_FALSE(CTMap.getError());
  386   ASSERT_FALSE(BodySamples.getError());
unittests/Support/ErrorOrTest.cpp
   33   EXPECT_EQ(a.getError(), errc::invalid_argument);
unittests/Support/ErrorTest.cpp
  720     EXPECT_EQ(Orig.getError(), RoundTripped.getError())
  720     EXPECT_EQ(Orig.getError(), RoundTripped.getError())
unittests/Support/MemoryBufferTest.cpp
  115     ASSERT_NO_ERROR(MB.getError());
  124     ASSERT_ERROR(MemoryBuffer::getOpenFile(*File, TestPath, 6).getError());
  143   std::error_code EC = MB.getError();
  191   ASSERT_NO_ERROR(MB.getError());
  250   std::error_code EC = Buf.getError();
  296   std::error_code EC = MB.getError();
  311   EC = MB2.getError();
  337     ASSERT_FALSE(MBOrError.getError());
  348   ASSERT_FALSE(MBOrError.getError());
  367     ASSERT_FALSE(MBOrError.getError());
  378   ASSERT_FALSE(MBOrError.getError());
unittests/Support/Path.cpp
  940     if (i->status().getError() ==
  957     if (i->status().getError() ==
  976     if (i->status().getError() ==
 1080   ASSERT_NO_ERROR(Hash.getError());
unittests/Support/VirtualFileSystemTest.cpp
   67     return S.getError();
  192   ASSERT_FALSE(Status.getError());
  202   ASSERT_FALSE(Status.getError());
  212   ASSERT_FALSE(Status.getError());
  222   ASSERT_FALSE(Status2.getError());
  236   EXPECT_FALSE(Status.getError());
  240   EXPECT_FALSE(Status2.getError());
  289   ASSERT_FALSE(StatusB.getError());
  291   ASSERT_FALSE(Status1.getError());
  294   ASSERT_FALSE(StatusM.getError());
  296   ASSERT_FALSE(Status2.getError());
  299   ASSERT_FALSE(StatusT.getError());
  301   ASSERT_FALSE(Status3.getError());
  324   ASSERT_FALSE(Status1.getError());
  326   ASSERT_FALSE(Status2.getError());
  330   ASSERT_FALSE(Status1.getError());
  332   ASSERT_FALSE(Status2.getError());
  348   ASSERT_FALSE(Status.getError());
  355   ASSERT_FALSE(Status.getError());
  358   ASSERT_FALSE(Status.getError());
  379     ASSERT_TRUE(Status.getError());
  385     ASSERT_FALSE(Status.getError());
  399     ASSERT_FALSE(Status.getError());
  406     ASSERT_TRUE(Status.getError());
  583         FS->status(I->path()).getError();
  907   ASSERT_FALSE(Stat.getError());
  910   ASSERT_FALSE(File.getError());
  924   ASSERT_FALSE(PWD.getError());
  951   return !OpenedFrom.getError() && !OpenedTo.getError() &&
  951   return !OpenedFrom.getError() && !OpenedTo.getError() &&
  958   ASSERT_EQ(Stat.getError(), errc::no_such_file_or_directory) << FS.toString();
  960   ASSERT_EQ(Stat.getError(), errc::no_such_file_or_directory) << FS.toString();
  967   ASSERT_FALSE(Stat.getError()) << Stat.getError() << FS.toString();
  967   ASSERT_FALSE(Stat.getError()) << Stat.getError() << FS.toString();
  970   ASSERT_FALSE(Stat.getError()) << Stat.getError() << FS.toString();
  970   ASSERT_FALSE(Stat.getError()) << Stat.getError() << FS.toString();
  973   ASSERT_FALSE(Stat.getError()) << Stat.getError() << FS.toString();
  973   ASSERT_FALSE(Stat.getError()) << Stat.getError() << FS.toString();
  980   ASSERT_FALSE(Stat.getError()) << Stat.getError() << FS.toString();
  980   ASSERT_FALSE(Stat.getError()) << Stat.getError() << FS.toString();
  984   ASSERT_FALSE(Stat.getError()) << Stat.getError() << FS.toString();
  984   ASSERT_FALSE(Stat.getError()) << Stat.getError() << FS.toString();
  986   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
  986   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
  994   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
  994   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1012   ASSERT_EQ(File.getError(), errc::invalid_argument) << FS.toString();
 1014   ASSERT_EQ(File.getError(), errc::no_such_file_or_directory) << FS.toString();
 1062   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1062   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1067   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1067   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1116   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1116   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1120   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1120   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1124   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1124   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1133   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1133   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1138   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1138   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1141   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1141   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1151   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1151   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1154   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1154   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1157   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1157   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1166   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1166   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1172   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1172   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1178   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1178   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1190   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1190   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1193   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1193   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n" << FS.toString();
 1207   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n"
 1207   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n"
 1214   ASSERT_FALSE(File.getError()) << File.getError() << "\n"
 1214   ASSERT_FALSE(File.getError()) << File.getError() << "\n"
 1217   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n"
 1217   ASSERT_FALSE(Stat.getError()) << Stat.getError() << "\n"
 1410   ASSERT_FALSE(S.getError());
 1421   ASSERT_FALSE(OpenedF.getError());
 1423   ASSERT_FALSE(OpenedS.getError());
 1429   ASSERT_FALSE(S.getError());
 1434   EXPECT_EQ(O->status("//root/file2").getError(),
 1463   ASSERT_FALSE(S.getError());
 1466   ASSERT_FALSE(SS.getError());
 1499   EXPECT_EQ(SS.getError(), llvm::errc::no_such_file_or_directory);
 1501   EXPECT_EQ(SS.getError(), llvm::errc::no_such_file_or_directory);
 1503   EXPECT_EQ(SS.getError(), llvm::errc::no_such_file_or_directory);
 1662   EXPECT_FALSE(FS->status("//root/path/to/file").getError());
 1663   EXPECT_FALSE(FS->status("//root/path/to").getError());
 1664   EXPECT_FALSE(FS->status("//root/path").getError());
 1665   EXPECT_FALSE(FS->status("//root/").getError());
 1676   EXPECT_FALSE(FS->status("//root/path/to/file").getError());
 1677   EXPECT_FALSE(FS->status("//root/path/to").getError());
 1678   EXPECT_FALSE(FS->status("//root/path").getError());
 1679   EXPECT_FALSE(FS->status("//root/").getError());
 1690   EXPECT_FALSE(FS->status("//root/path/to/file").getError());
 1691   EXPECT_FALSE(FS->status("//root/path/to").getError());
 1692   EXPECT_FALSE(FS->status("//root/path").getError());
 1693   EXPECT_FALSE(FS->status("//root/").getError());
 1709   EXPECT_FALSE(FS->status("//root/path/to/file").getError());
 1710   EXPECT_FALSE(FS->status("//root/path/to").getError());
 1711   EXPECT_FALSE(FS->status("//root/path").getError());
 1712   EXPECT_FALSE(FS->status("//root/").getError());
 2046   ASSERT_FALSE(Status.getError());
 2102   ASSERT_FALSE(Status.getError());
 2106   ASSERT_FALSE(Status.getError());
 2113   ASSERT_FALSE(Status.getError());
 2117   ASSERT_TRUE(Status.getError());
 2120   ASSERT_TRUE(Status.getError());
 2126   ASSERT_FALSE(Status.getError());
 2159   ASSERT_FALSE(Status.getError());
 2163   ASSERT_TRUE(Status.getError());
utils/FileCheck/FileCheck.cpp
  591   if (std::error_code EC = CheckFileOrErr.getError()) {
  611   if (std::error_code EC = InputFileOrErr.getError()) {
utils/not/not.cpp
   38                        << "' in PATH: " << Program.getError().message() << "\n";