Skip to content

Commit 2dfa6fe

Browse files
committed
address comments
1 parent 4610973 commit 2dfa6fe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8015,9 +8015,8 @@ static SDValue getMemsetStringVal(EVT VT, const SDLoc &dl, SelectionDAG &DAG,
80158015
if (Slice.Array == nullptr) {
80168016
if (VT.isInteger())
80178017
return DAG.getConstant(0, dl, VT);
8018-
if (VT.isFloatingPoint())
8019-
return DAG.getConstantFP(0.0, dl, VT);
8020-
llvm_unreachable("Expected type!");
8018+
return DAG.getNode(ISD::BITCAST, dl, VT,
8019+
DAG.getConstant(0, dl, VT.changeTypeToInteger()));
80218020
}
80228021

80238022
assert(!VT.isVector() && "Can't handle vector type here!");

0 commit comments

Comments
 (0)