[all-commits] [llvm/llvm-project] a4a5c0: [Modules] Change result of reading AST block to ll...

Ben Barham via All-commits all-commits at lists.llvm.org
Fri Aug 27 20:17:07 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a4a5c00b53d0638e2bd9011fa5cce7ef9739eea6
      https://github.com/llvm/llvm-project/commit/a4a5c00b53d0638e2bd9011fa5cce7ef9739eea6
  Author: Ben Barham <ben_barham at apple.com>
  Date:   2021-08-27 (Fri, 27 Aug 2021)

  Changed paths:
    M clang/include/clang/Serialization/ASTReader.h
    M clang/lib/Serialization/ASTReader.cpp

  Log Message:
  -----------
  [Modules] Change result of reading AST block to llvm::Error instead

Reading the AST block can never fail with a recoverable error as modules
cannot be removed during this phase. Change the return type of these
functions to return an llvm::Error instead, ie. either success or
failure.

NFC other than the wording of some of the errors.

Differential Revision: https://reviews.llvm.org/D108268




More information about the All-commits mailing list