Revert "Always use malloc/free for allocation of SIL instructions."

This reverts commit a312dad07b.
This commit is contained in:
Ted Kremenek
2015-11-17 21:22:30 -08:00
parent 25e310c46f
commit 1389c41b79

View File

@@ -132,7 +132,10 @@ void *SILModule::allocate(unsigned Size, unsigned Align) const {
}
void *SILModule::allocateInst(unsigned Size, unsigned Align) const {
return AlignedAlloc(Size, Align);
if (true || getASTContext().LangOpts.UseMalloc)
return AlignedAlloc(Size, Align);
return BPA.Allocate(Size, Align);
}
SILWitnessTable *