Revert "Add a static_assert confirming that DiagnosticBuilder is small"
authorReid Kleckner <rnk@google.com>
Thu, 24 Sep 2020 23:39:46 +0000 (16:39 -0700)
committerReid Kleckner <rnk@google.com>
Thu, 24 Sep 2020 23:39:46 +0000 (16:39 -0700)
This reverts commit a32feed0dbeac7606d042d0d7e041c9eaf12cd51.

This assert doesn't hold in 32-bit builds, I didn't do the math right.

clang/lib/Basic/Diagnostic.cpp

index c98fa6e..661eabf 100644 (file)
@@ -40,9 +40,6 @@
 
 using namespace clang;
 
-static_assert(sizeof(DiagnosticBuilder) <= 2 * sizeof(void *),
-              "DiagnosticBuilder should be small, see class doc comments");
-
 const DiagnosticBuilder &clang::operator<<(const DiagnosticBuilder &DB,
                                            DiagNullabilityKind nullability) {
   StringRef string;