From e5376439c38219136e82bd9e8597e285ed5908fc Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Mon, 26 Aug 2024 15:52:34 -0700 Subject: [PATCH] Correctly obey NDEBUG for CONDITIONAL_ASSERT It looks like a piece of an old experiment never got removed, which broke the intended behavior here. --- lib/Basic/Assertions.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/Basic/Assertions.cpp b/lib/Basic/Assertions.cpp index 652ff600f6f5e..e195ec0745668 100644 --- a/lib/Basic/Assertions.cpp +++ b/lib/Basic/Assertions.cpp @@ -17,8 +17,6 @@ #include "llvm/Support/CommandLine.h" #include "llvm/Support/raw_ostream.h" #include "swift/Basic/Assertions.h" -#undef NDEBUG -#include #include llvm::cl::opt AssertContinue(