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:
Michael Gottesman
2014-02-01 02:19:10 +00:00
parent 226a6f89ca
commit 71f33eef2c
2 changed files with 29 additions and 24 deletions

View File

@@ -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
}
}