Skip to content

Commit e02a345

Browse files
authored
Merge pull request #62420 from nate-chandler/opaque-values/1/20221206
[NFC] TypeLowering: Use lowered type in copy into.
2 parents 9774e98 + 3007494 commit e02a345

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
@@ -1954,7 +1954,7 @@ namespace {
19541954
void emitCopyInto(SILBuilder &B, SILLocation loc,
19551955
SILValue src, SILValue dest, IsTake_t isTake,
19561956
IsInitialization_t isInit) const override {
1957-
if (B.getModule().useLoweredAddresses()) {
1957+
if (LoweredType.isAddress()) {
19581958
B.createCopyAddr(loc, src, dest, isTake, isInit);
19591959
} else {
19601960
SILValue value = emitLoadOfCopy(B, loc, src, isTake);

0 commit comments

Comments
 (0)