[all-commits] [llvm/llvm-project] c46b3a: clang/Modules: Clean up modules on error in ReadAST

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Mon Nov 11 16:49:46 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c46b3a2abd38d6fecd389c97dfa7df54af77fdb9
      https://github.com/llvm/llvm-project/commit/c46b3a2abd38d6fecd389c97dfa7df54af77fdb9
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2019-11-11 (Mon, 11 Nov 2019)

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

  Log Message:
  -----------
  clang/Modules: Clean up modules on error in ReadAST

ReadASTBlock and ReadASTExtensions can both return failures.  Be
consistent and remove all the just-loaded modules, just like when
ReadASTCore returns failures.

https://reviews.llvm.org/D70055




More information about the All-commits mailing list