diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2016-11-03 15:04:58 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2016-11-03 15:04:58 +0000 |
commit | 43556c14fe5ab356a17519f6f3da68f18450df47 (patch) | |
tree | 22043ca642fb93c98fa03e7d895fe42f91571a18 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 212b93d816260fca2f4129a3224647e52e5b3354 (diff) | |
download | llvm-43556c14fe5ab356a17519f6f3da68f18450df47.zip llvm-43556c14fe5ab356a17519f6f3da68f18450df47.tar.gz llvm-43556c14fe5ab356a17519f6f3da68f18450df47.tar.bz2 |
[Sema] Avoid instantiating templates only when UncompilableErrorOccurred
and FatalErrorOccurred are both set.
This fixes a crash that occurs when a warning promoted to a fatal error
leaves the AST in an incomplete state, and then later CFG analysis is
run on the incomplete AST.
rdar://problem/28558923
Differential Revision: https://reviews.llvm.org/D26166
llvm-svn: 285923
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions