Skip to content

Commit dfa629a

Browse files
committed
[SIL] Fix memInstMustInitialize for builtins.
The function's switch previously fell-through to the SILInstructionKind::StoreWeakInst case which cast the instruction (a BuiltinInst) to StoreWeakInst and then called isInitializationOfDest on it.
1 parent 9179bc5 commit dfa629a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SILOptimizer/Mandatory/MoveOnlyUtils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ bool noncopyable::memInstMustInitialize(Operand *memOper) {
221221
// `zeroInitializer` with an address operand zeroes out the address operand
222222
return true;
223223
}
224+
return false;
224225
}
225226

226227
#define NEVER_OR_SOMETIMES_LOADABLE_CHECKED_REF_STORAGE(Name, ...) \

0 commit comments

Comments
 (0)