Skip to content

Commit 18f2d92

Browse files
committed
SIL: Go back to using minimal resilience expansion in SILType::isTrivial() for now
I want to replace more call sites of isTrivial(SILModule) with isTrivial(SILFunction) before "flipping the switch".
1 parent d02d49f commit 18f2d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SIL/SILType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ bool SILType::isTrivial(SILModule &M) const {
8989
bool SILType::isTrivial(const SILFunction &F) const {
9090
// FIXME: Should just call F.getTypeLowering()
9191
return F.getModule().Types.getTypeLowering(*this,
92-
F.getResilienceExpansion()).isTrivial();
92+
ResilienceExpansion::Minimal).isTrivial();
9393
}
9494

9595
bool SILType::isReferenceCounted(SILModule &M) const {

0 commit comments

Comments
 (0)