Skip to content

Commit 6a98a7e

Browse files
committed
fixup! Use cast after rebase.
1 parent aca9ef2 commit 6a98a7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ Instruction *InstCombinerImpl::visitAdd(BinaryOperator &I) {
15731573
WithCache<const Value *> LHSCache(LHS), RHSCache(RHS);
15741574
if (haveNoCommonBitsSet(LHSCache, RHSCache, SQ.getWithInstruction(&I))) {
15751575
auto *Or = BinaryOperator::CreateOr(LHS, RHS);
1576-
Or->setIsDisjoint();
1576+
cast<PossiblyDisjointInst>(Or)->setIsDisjoint(true);
15771577
return Or;
15781578
}
15791579

0 commit comments

Comments
 (0)