Skip to content

Commit 601c7ad

Browse files
committed
Value type
1 parent ef7f64a commit 601c7ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13597,7 +13597,7 @@ SDValue DAGCombiner::visitSETCC(SDNode *N) {
1359713597

1359813598
// If the comparison result is known, replace with constant
1359913599
if (KnownVal) {
13600-
return DAG.getBoolConstant(*KnownVal, DL, VT, VT);
13600+
return DAG.getBoolConstant(*KnownVal, DL, VT, N1.getValueType());
1360113601
}
1360213602
}
1360313603

0 commit comments

Comments
 (0)