We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e23833 commit a232e1fCopy full SHA for a232e1f
lib/SILOptimizer/Transforms/SILMem2Reg.cpp
@@ -277,6 +277,8 @@ bool MemoryToRegisters::isWriteOnlyAllocation(AllocStackInst *ASI) {
277
/// Promote a DebugValueAddr to a DebugValue of the given value.
278
static void
279
promoteDebugValueAddr(DebugValueAddrInst *DVAI, SILValue Value, SILBuilder &B) {
280
+ assert(DVAI->getOperand()->getType().isLoadable(DVAI->getModule()) &&
281
+ "Unexpected promotion of address-only type!");
282
assert(Value && "Expected valid value");
283
B.setInsertionPoint(DVAI);
284
B.setCurrentDebugScope(DVAI->getDebugScope());
0 commit comments