Skip to content

Commit f824204

Browse files
committed
Verify interfaces by default in assert compilers
Isolated into its own commit so that it can be reverted easily.
1 parent 22e3cff commit f824204

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Driver/Driver.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,7 +2209,11 @@ void Driver::buildActions(SmallVectorImpl<const Action *> &TopLevelActions,
22092209
TopLevelActions.append(AllLinkerInputs.begin(), AllLinkerInputs.end());
22102210
}
22112211

2212+
#ifdef NDEBUG
22122213
bool verifyInterfacesByDefault = false;
2214+
#else
2215+
bool verifyInterfacesByDefault = true;
2216+
#endif
22132217

22142218
if (MergeModuleAction
22152219
&& Args.hasFlag(options::OPT_verify_emitted_module_interface,

0 commit comments

Comments
 (0)