Skip to content

Commit a312dad

Browse files
committed
Always use malloc/free for allocation of SIL instructions.
1 parent d58f948 commit a312dad

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/SIL/SILModule.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,7 @@ void *SILModule::allocate(unsigned Size, unsigned Align) const {
132132
}
133133

134134
void *SILModule::allocateInst(unsigned Size, unsigned Align) const {
135-
if (true || getASTContext().LangOpts.UseMalloc)
136-
return AlignedAlloc(Size, Align);
137-
138-
return BPA.Allocate(Size, Align);
135+
return AlignedAlloc(Size, Align);
139136
}
140137

141138
SILWitnessTable *

0 commit comments

Comments
 (0)