Skip to content

Commit 6a082ed

Browse files
committed
[SelectionDAG] Fix copy/paste mistake in SDNodeFlags::intersectWith
The NonNeg flag was being Anded with the Exact flag.
1 parent 5b2fee8 commit 6a082ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/CodeGen/SelectionDAGNodes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ struct SDNodeFlags {
454454
NoUnsignedWrap &= Flags.NoUnsignedWrap;
455455
NoSignedWrap &= Flags.NoSignedWrap;
456456
Exact &= Flags.Exact;
457-
NonNeg &= Flags.Exact;
457+
NonNeg &= Flags.NonNeg;
458458
NoNaNs &= Flags.NoNaNs;
459459
NoInfs &= Flags.NoInfs;
460460
NoSignedZeros &= Flags.NoSignedZeros;

0 commit comments

Comments
 (0)