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 19
19
#define SWIFT_AST_IRGENOPTIONS_H
20
20
21
21
#include " swift/AST/LinkLibrary.h"
22
+ #include " swift/Basic/Assertions.h"
22
23
#include " swift/Basic/PathRemapper.h"
23
24
#include " swift/Basic/Sanitizers.h"
24
25
#include " swift/Basic/OptionSet.h"
@@ -655,11 +656,7 @@ class IRGenOptions {
655
656
TypeInfoFilter(TypeInfoDumpFilter::All),
656
657
PlatformCCallingConvention(llvm::CallingConv::C), UseCASBackend(false ),
657
658
CASObjMode(llvm::CASBackendMode::Native) {
658
- #ifndef NDEBUG
659
- DisableRoundTripDebugTypes = false ;
660
- #else
661
- DisableRoundTripDebugTypes = true ;
662
- #endif
659
+ DisableRoundTripDebugTypes = !CONDITIONAL_ASSERT_enabled ();
663
660
}
664
661
665
662
// / Appends to \p os an arbitrary string representing all options which
You can’t perform that action at this time.
0 commit comments