]> granicus.if.org Git - clang/commit
[AST] There is no message for C++1z-style static_assert
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 5 Jun 2015 18:03:58 +0000 (18:03 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 5 Jun 2015 18:03:58 +0000 (18:03 +0000)
commitabc4567470c51fd3824df2f7d0746eebf3bbf7be
tree208a17d7c6eb28cca6de2156273101836b6d0a4e
parent921bb7561869e255aa5f9572c734cfa9edbf6e39
[AST] There is no message for C++1z-style static_assert

We would crash in the DeclPrinter trying to pretty-print the
static_assert message.  C++1z-style assertions don't have a message so
we would crash.

This fixes PR23756.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239170 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/DeclPrinter.cpp
lib/Headers/Intrin.h
test/SemaCXX/static-assert.cpp