HomePhabricator

clang/Modules: Clean up modules on error in ReadAST

Authored by dexonsmith on Nov 10 2019, 10:42 AM.

Description

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
(cherry picked from commit c46b3a2abd38d6fecd389c97dfa7df54af77fdb9)

Details

Committed
dexonsmithNov 12 2019, 9:04 AM
Parents
rGeea0b7cfcc46: clang/Modules: Add missing diagnostics for malformed AST files
Branches
Unknown
Tags
Unknown