mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "Always use malloc/free for allocation of SIL instructions."
This reverts commit a312dad07b.
This commit is contained in:
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user