File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1919#define SWIFT_AST_IRGENOPTIONS_H
2020
2121#include " swift/AST/LinkLibrary.h"
22+ #include " swift/Basic/Assertions.h"
2223#include " swift/Basic/PathRemapper.h"
2324#include " swift/Basic/Sanitizers.h"
2425#include " swift/Basic/OptionSet.h"
@@ -655,11 +656,7 @@ class IRGenOptions {
655656 TypeInfoFilter(TypeInfoDumpFilter::All),
656657 PlatformCCallingConvention(llvm::CallingConv::C), UseCASBackend(false ),
657658 CASObjMode(llvm::CASBackendMode::Native) {
658- #ifndef NDEBUG
659- DisableRoundTripDebugTypes = false ;
660- #else
661- DisableRoundTripDebugTypes = true ;
662- #endif
659+ DisableRoundTripDebugTypes = !CONDITIONAL_ASSERT_enabled ();
663660 }
664661
665662 // / Appends to \p os an arbitrary string representing all options which
You can’t perform that action at this time.
0 commit comments