mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Convert the recent commits with DEBUG() => #ifndef NDEBUG. That is what they should really be using. I just had a thinko there.
Swift SVN r13279
This commit is contained in:
@@ -963,6 +963,9 @@ static void optimizeMemoryAllocations(SILFunction &Fn) {
|
||||
void swift::performSILPredictableMemoryOptimizations(SILModule *M) {
|
||||
for (auto &Fn : *M) {
|
||||
optimizeMemoryAllocations(Fn);
|
||||
DEBUG(Fn.verify());
|
||||
|
||||
#ifndef NDEBUG
|
||||
Fn.verify();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user