Skip to content

Commit 3007494

Browse files
committed
[NFC] TypeLowering: Use lowered type in copy into.
Instead of digging the current state of address lowering out of the builder's module, just use the LoweredType whose value category tracks that state.
1 parent 693d601 commit 3007494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SIL/IR/TypeLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@ namespace {
19501950
void emitCopyInto(SILBuilder &B, SILLocation loc,
19511951
SILValue src, SILValue dest, IsTake_t isTake,
19521952
IsInitialization_t isInit) const override {
1953-
if (B.getModule().useLoweredAddresses()) {
1953+
if (LoweredType.isAddress()) {
19541954
B.createCopyAddr(loc, src, dest, isTake, isInit);
19551955
} else {
19561956
SILValue value = emitLoadOfCopy(B, loc, src, isTake);

0 commit comments

Comments
 (0)