]> granicus.if.org Git - clang/commit
Handle EmptyDecl in DeclContextPrinter
authorAlex Lorenz <arphaman@gmail.com>
Tue, 3 Jan 2017 12:09:39 +0000 (12:09 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 3 Jan 2017 12:09:39 +0000 (12:09 +0000)
commit4e71c53f555dd0bc7605420f83e33617430872b8
treeadaed93b8c3abf7bad70809d176962c047c04168
parent550e0fa7a8a01e4cb76e492ef2c3afdb17f4a764
Handle EmptyDecl in DeclContextPrinter

This commit fixes a crash that occurs when -print-decl-contexts AST consumer
tries to print an unhandled declaration.

rdar://19467234

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290882 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/ASTConsumers.cpp
test/Coverage/cxx-language-features.inc