Merge pull request #77992 from meg-gupta/delassert

Remove incorrect assert in ConditionForwarding
This commit is contained in:
Meghana Gupta
2024-12-05 21:47:52 -08:00
committed by GitHub
2 changed files with 31 additions and 2 deletions

View File

@@ -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);