Attempt to bring peace to -Werror buildbots.

llvm-svn: 276022
This commit is contained in:
Richard Smith 2016-07-19 20:35:09 +00:00
parent d4c5e27a27
commit 398d9c0c4a

View File

@ -12,6 +12,12 @@
#include <cassert>
#include <cstdlib>
// Clang emits a warning on converting an object of type nullptr_t to bool,
// even in generic code. Suppress it.
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wnull-conversion"
#endif
struct A {};
template<typename T, bool CanCatchNullptr>