Skip to content

Commit 846a6dc

Browse files
committed
Revert "Fix test flags"
This reverts commit e0b4d55. Revert "Include crashing test case" This reverts commit e5dd189. Revert "Compare rvalue types in assertion" This reverts commit 1952739. This series of commits still was leading to a crash in IRGen. There is an incorrect ref_to_unmanaged further up in the function with the wrong input type, so something is weird with preparing the AutoreleasingUnsafeMutablePointer. https://bugs.swift.org/browse/SR-87
1 parent 8bba74e commit 846a6dc

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

lib/SILGen/SILGenExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ ManagedValue SILGenFunction::emitManagedRValueWithCleanup(SILValue v) {
7171

7272
ManagedValue SILGenFunction::emitManagedRValueWithCleanup(SILValue v,
7373
const TypeLowering &lowering) {
74-
assert(lowering.getLoweredType().getSwiftRValueType() == v.getType().getSwiftRValueType());
74+
assert(lowering.getLoweredType() == v.getType());
7575
if (lowering.isTrivial())
7676
return ManagedValue::forUnmanaged(v);
7777

validation-test/compiler_crashers_fixed/21815-swift-lowering-silgen-emitmanagedrvaluewithcleanup.swift

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)