mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #77992 from meg-gupta/delassert
Remove incorrect assert in ConditionForwarding
This commit is contained in:
@@ -297,8 +297,6 @@ bool ConditionForwarding::tryOptimize(SwitchEnumInst *SEI) {
|
||||
if (HasEnumArg) {
|
||||
// The successor block has a new argument (which we created above) where
|
||||
// we have to pass the Enum.
|
||||
assert(!getFunction()->hasOwnership() ||
|
||||
EI->getType().isTrivial(*getFunction()));
|
||||
BranchArgs.push_back(EI);
|
||||
}
|
||||
B.createBranch(BI->getLoc(), SEDest, BranchArgs);
|
||||
|
||||
Reference in New Issue
Block a user