]> granicus.if.org Git - clang/commit
[Sema][ObjC] Check whether a DelayedDiagnosticPool has been pushed
authorAkira Hatanaka <ahatanaka@apple.com>
Wed, 23 Jan 2019 00:55:48 +0000 (00:55 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Wed, 23 Jan 2019 00:55:48 +0000 (00:55 +0000)
commit4566ed0d7c076ad061168f7c6cb5fa3a793614a8
tree037bdef312f4d177e2bc3acfeafd8cca3e6ce8dc
parent6ce5ebd99702186f90131b4a2b922c5cc64f945d
[Sema][ObjC] Check whether a DelayedDiagnosticPool has been pushed
before adding a delayed diagnostic to DelayedDiagnostics.

This fixes an assertion failure in Sema::DelayedDiagnostics::add that
was caused by the changes made in r141037.

rdar://problem/42782323

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351911 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaObjCXX/arc-0x.mm