Skip to content

Commit 3277f62

Browse files
authored
[SDAG] Remove invalid check (NFC) (#146899)
It does not make sense to do !LC. LC is an RTLIB::Libcall enum, and zero is a valid value.
1 parent 7474962 commit 3277f62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2519,8 +2519,11 @@ bool SelectionDAG::expandMultipleResultFPLibCall(
25192519
EVT VT = Node->getValueType(0);
25202520
unsigned NumResults = Node->getNumValues();
25212521

2522+
if (LC == RTLIB::UNKNOWN_LIBCALL)
2523+
return false;
2524+
25222525
const char *LCName = TLI->getLibcallName(LC);
2523-
if (!LC || !LCName)
2526+
if (!LCName)
25242527
return false;
25252528

25262529
auto getVecDesc = [&]() -> VecDesc const * {

0 commit comments

Comments
 (0)